Another ParseExact problem. I\'m trying to parse a UTC formatted string to a datetime with the format of:
\"YYYY-MM-DDThh:mm:ss.ssZ\"
which is i
The format strings you mentioned are standard format strings. You should probably use a custom format string, like this:
DateTime.ParseExact("2011-03-02T20:15:19.64Z", "yyyy-MM-ddTHH:mm:ss.ffK", null).ToUniversalTime()
If you don't put ToUniversalTime()
at the end, the result will be converted to your local time zone.