Quantcast
Viewing all articles
Browse latest Browse all 41

Error : The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

Hi,

I got this error while developing an asp.net page with Sql server as database,

On checking the sql query i found out that the date value was not being sent in the format expected by the database , so by changing the format within my query resolved the issue !

Initially it was calendar.ToShortDateString() and i changed it to 

Calendar1.SelectedDate.ToString(“MM/dd/yyyy”)

Bye…


Viewing all articles
Browse latest Browse all 41

Trending Articles