I assume this should be pretty simple, but could not get it :(. In this format Z is time zone. T is long time pattern How could I get a date in this format excep
Console.WriteLine(DateTime.UtcNow.ToString("o")); Console.WriteLine(DateTime.Now.ToString("o"));
Outputs:
2012-07-09T19:22:09.1440844Z 2012-07-09T12:22:09.1440844-07:00