I can't figure it out, where did I go wrong?
I got the following datetime string, and need to parse it to datetime:
string timestr = "1/20/2014 12:05:16 AM"
And I trying to parse it like this:
DateTime.ParseExact( timestr,
"MM/dd/yyyy hh:mm:ss tt",
null);
When trying to do this it returns
"string was not recognized as a valid DateTime"
Any tip?