Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Terminology for specific date times
Message
From
25/06/2015 16:15:21
 
 
To
25/06/2015 11:20:30
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:
01621462
Views:
55
>>>What would be the terminology to use to recognize this specific date time format:
>>>
>>>2015-06-25T08:06:31-04:00
>>>
>>>...and this one:
>>>
>>>2015-06-25T08:11:41
>>
>>Looks like ISO 8601
>>
>>See String Literal Date and Time Formats here...
>>https://technet.microsoft.com/en-us/library/ms180878(v=sql.105).aspx#StyleArgumentsfortheCONVERTFunction
>
>Thanks, I am doing a few verifications on actual methods I have to see about the proper naming to use.
>
>On the first date, that would UTCToDateTime() assuming I am passing that string to obtain a date.
>
>The second one is not obvious. It is also UTC but without the time zone indicator. Is it better that I detect if I have a time zone in the same method or building a second method for such format?

I think I would create 2 methods:

UTCToDateTime(string) and UTCToDateTime(string, string)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform