You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Francois Normandin edited this page Jan 10, 2021
·
2 revisions
Strict ISO 8601
Currently, the following subsets of the standard are implemented:
UTC DateTime, ISO Day, ISO Week, ISO WeekDay, Ordinal Date, Calendar Month
Examples
Taking the following date and time: January 1st, 2021 @ 11:50:22.587 in Montreal:
UTC DateTime = 2021-01-09T16:50:22.587Z
Non UTC DateTime = 2021-01-08T11:50:22.587-05:00
ISO Date = 2021-01-09 or 20210109
ISO Calendar month = 2021-01
ISO Week = 2021-W01
ISO Week-Day = 2021-W01-6
ISO Ordinal Date = 2021-009
The reverse operation (ISO8601 DateString to Timestamp) supports all the above accepted formats, validates the input string for compliance and returns the ISO Format type matched.
Screenshot
Date Formatting Classes
By default, the Epoch Time to DateString uses the ISO8601 format. But a different date formatting can be created and injected to perform a user-defined formatting of whichever epoch time selected.
Current Date Formatters include: ISO8601 and RFC5322 formats