Author: prakashss83 | Posted on: 4/16/2009 10:56:33 PM | Views : 493

hi

while i am working with ASP.NET application i received an error that string was not recognized valid date time . but in local application runs good but in server it displays the error.

But the local datetime and server datetime is different and is there any way to solve the problem by without changing the server datetime.

The error displayed is given below

System.FormatException: String was not recognized as a valid DateTime. at System.DateTimeParse.GetDayOfNNY(DateTimeResult result, DateTimeRawInfo raw, DateTimeFormatInfo dtfi) at System.DateTimeParse.ProcessTerminaltState(Int32 dps, DateTimeResult result, DateTimeRawInfo raw, DateTimeFormatInfo dtfi) at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles) at System.DateTime.Parse(String s, IFormatProvider provider) at System.DateTime.Parse(String s) at System.Convert.ToDateTime(Stri ...

Go to the complete details ...