.NET throws an exception trying to parse a datetime string in this format:
Fri, 10 Oct 2008 00:05:51 CST
Convert.ToDateTime ("Fri, 10 Oct 2008 00:05:51 CST") throws an exception:
The string was not recognized as valid DateTime. There is an unknown word starting with index 26
Character 26 is obviously the beginning of "CST"
In a quick test, PHP and javascript can parse this string into a date without a problem. Is .NET just unsuccessful or is there a reasonable explanation?
source
share