I have the following DateTime string 2014-11-03 08:44:00:082467 Z
When I try to do c simple Convert.ToDateTime
I got and error that it's not a recognized DateTime string.
I also tried what's suggested in the post here: DateTime.Parse("2012-09-30T23:00:00.0000000Z") always converts to DateTimeKind.Local
var date = DateTime.ParseExact("2012-09-30T23:00:00.0000000Z",
"yyyy-MM-dd'T'HH:mm:ss.fffffff'Z'",
CultureInfo.InvariantCulture,
DateTimeStyles.AssumeUniversal |
DateTimeStyles.AdjustToUniversal);
But got the same error. What kind of DateTime string is this? and how can I convert it to a DateTime object? Also, it's not the currect time (I'm 2 hours before) - so I'm guessing it's some kind of universal time.
Thanks