Overview#
DateTime is typically a data-type that is a DateTime or Date Form or TimestampSpecific details of the data-type DateTime are context dependent.
DateTime generally implies there are both a date and a time.
ISO 8601 and DateTime (or Date-Time)#
ISO 8601 allows the following Date and Time formats:- Date: 2017-10-14
- Combined date and time in UTC: 2017-10-14T08:32:47+00:00
- Combined date and time in UTC: 2017-10-14T08:32:47Z
- Combined date and time in UTC: 20171014T083247Z
JSON and DateTime#
JSON itself does not specify how Date-Time should be represented, but JavaScript does.You should use the format emitted by Date's to JSON method:
2012-04-23T18:25:43.511Z
Here's why:
- It's human readable but also succinct
- It sorts correctly
- It includes fractional seconds, which can help re-establish chronology
- It conforms to ISO 8601
- ISO 8601 has been well-established internationally for more than a decade
- ISO 8601 is endorsed by W3C, RFC 3339, and XKCD
More Information#
There might be more information for this subject on one of the following:- AD Determining Password Expiration
- AS_REP
- Automated License Plate Reader
- BirthDate
- Blockchain
- DID Document
- Date
- Date Form
- DateTime
- DirXML Code Snippets
- ISO 8601
- LargeInteger
- LargeInteger Date
- Microsoft TIME
- SCIM Data Types
- SCIM Password Management Extension
- SCIM meta.created
- SCIM meta.lastModified
- Tick
- Time
- UTCTime
- Unix Epoch
- Unix Time