embalism
January 31st, 2010, 03:33 PM
Greetings,
Perhaps this is a bug with DateTime.ParseExact()?
Input:
SUNDAYSEPTEMBER271:00PMET
Code:
prediction.TimeOfGame = DateTime.ParseExact((_date + timeOfGameNoCommasOrSpaces).ToUpper(),
"ddddMMMMdh:mmttET",
null);
Returns:
System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.
I'd like to report this, perhaps someone knows the reason for the exception?
Thanks,
Tom
Perhaps this is a bug with DateTime.ParseExact()?
Input:
SUNDAYSEPTEMBER271:00PMET
Code:
prediction.TimeOfGame = DateTime.ParseExact((_date + timeOfGameNoCommasOrSpaces).ToUpper(),
"ddddMMMMdh:mmttET",
null);
Returns:
System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.
I'd like to report this, perhaps someone knows the reason for the exception?
Thanks,
Tom