I have 1 field that is setup for date, but when i try to submit my page i get an error. in my class i have my insert method setup as DateTime TempEndTime, (variable name)
My insert parameter is like so:
cmd.Parameters.Add("@TempEndTime", System.Data.SqlDbType.DateTime).Value = TempEndTime;
And my code behind i have this:
This is the error detail.
Input string was not in a correct format.
The TroubleShooting Tips window has a message, "When converting a string to DateTime, parse the string to take the date before putting ....
View Complete Post