Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Terminology for specific date times
Message
From
26/06/2015 08:09:45
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621456
Message ID:
01621481
Views:
51
>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).aspx

Thanks, 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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform