Skip to content
BENIBIX Learn

ISO 8601 Date Format

Development📄 Files & FormatsData Formats

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

ISO 8601 is a world standard for writing dates and times as text. A date goes year, month, then day, like 2026-03-07. A time can follow after a T, like 2026-03-07T14:30:00. A Z at the end means UTC, and +01:00 means one hour ahead of it. Because the biggest part comes first, these dates sort in time order as plain text.

Example code

javascript
new Date(1700000000000).toISOString()
// '2023-11-14T22:13:20.000Z'
Year, month, day, then a T and the time. The Z says the time is in UTC.
On the right, the moment as an ISO 8601 date. The year comes first and Z means UTC.

Common mistake

Leaving off the Z or the offset. The time then has no zone, and each reader guesses a different one.

Key takeaways

  1. 1
    Biggest first. Year, month, day, then the time.
  2. 2
    Zone at the end. Z means UTC.
  3. 3
    Sorts as text. A to Z order is time order.

Learn it properly