I have a strange problem:
string format = @"ddd MMM dd hh:mm:ss \G\M\Tzzz yyyy"; __timestamp = "Fri Apr 09 17:02:00 GMT-0500 2010"; DateTime.ParseExact(__timestamp, format, new CultureInfo("en"));
return FormatException = "The string was not declared a valid DateTime."
but this code goes without exception:
string format = @"ddd MMM dd hh:mm:ss \G\M\Tzzz yyyy"; __timestamp = "Sat Apr 10 01:27:00 GMT-0500 2010"; DateTime.ParseExact(__timestamp, format, new CultureInfo("en"));
From 30 thousand parsing dates of this format about 50% unsuccessful with this exception ...
Does anyone know why?
source share