Karthik Puppala

Karthik Puppala

  • NA
  • 143
  • 16k

string was not recognized as valid datetime exception i,e 11

Jan 26 2015 8:43 AM
Hi All,
 
 I was facing problem with Convert.ToDateTime() in ie11 throws an exception "String was not recognized as a valid DateTime", and below are the stack message lines
 
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)\r\n at System.Convert.ToDateTime(String value, IFormatProvider provider)\r\n at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)\r\n at System.Convert.ToDateTime(Object value)\r\n at CommonPage.BindReport(DataTable dt, String rptPath, String rptName)
 
 
 
Please help.
 
FYR
 
prefered date format  "MM/dd/yyyy"
 
culture en-us.
 
 
Thanks in Advance,
karthik P.

Answers (4)