📄ISO 8601 Date Format
Also known as ISO 8601, ISO Date, ISO Date Format, RFC 3339
The world standard for writing dates, like 2026-03-07. Year first, so it sorts the right way.
Think of it like
Think of it like writing the biggest part first. The year comes first, then the month, then the day.
Example
A team in London and a team in Tokyo log events as 2026-03-07T09:00:00Z. Nobody wonders if 03/07 means March or July.
Why it matters
It ends the day and month muddle between countries. People and programs can both read it.
Definition
Example code
javascript
new Date(1700000000000).toISOString()
// '2023-11-14T22:13:20.000Z'Common mistake
Key takeaways
- 1Biggest first. Year, month, day, then the time.
- 2Zone at the end. Z means UTC.
- 3Sorts as text. A to Z order is time order.