I am trying to parse the following String DateTime object in C #:
DateTime.ParseExact("20101108 230125", "yyyyMMdd hhmmss", null)
although the value looks correct, the ParseExact method just gives me the following:
The string was not recognized as a valid DateTime.
Can someone tell me why and how can I parse the above line without doing it manually? Is ParseExact for such a case?
William Calleja
source share