>The first one is ISO 8601. The second one is not valid - I believe if you want to be a valid format it needs a Z at the to indicate the timezone is UTC.
>
>
>DateTime.UtcNow.ToString("o").Dump();
>DateTime.Now.ToString("o").Dump();
>string.Concat(DateTime.UtcNow.ToString("s"), "Z").Dump();
>
>
>which gives you:
>2015-06-26T05:32:20.5644525Z
>2015-06-25T22:32:20.5644525-07:00
>2015-06-26T05:32:20Z
>
>
>The first and third are the same format just the first has more precision and is officially correct.
>
>Here's a good overview of timeformats that .NET outputs and presumably can parse as well.
>
https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspxThanks, for UTCToDateTime(), I had to add support for the second format because we are receiving dates in that format as well. The base is from a UTC so that is why I added this extra support.
Thanks for the reference