# ISO 8601 Date Format

> The world standard for writing dates, like 2026-03-07. Year first, so it sorts the right way.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** ISO 8601, ISO Date, ISO Date Format, RFC 3339

## Think of it like

Think of it like writing the biggest part first. The year comes first, then the month, then the day.

## 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

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.

## 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.

## Why it matters

It ends the day and month muddle between countries. People and programs can both read it.

## Common mistake

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

## Three principles

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

## Related terms

- [Unix Timestamp](https://learn.benibix.com/term/development/unix-timestamp)
- [JavaScript Object Notation (JSON)](https://learn.benibix.com/term/development/json)
- [Comma-Separated Values (CSV)](https://learn.benibix.com/term/development/csv)
- [Event Time](https://learn.benibix.com/term/data/event-time)

## Taught in

- [UUIDs, Unix Time and ISO 8601](https://learn.benibix.com/learn/development-formats/uuids-unix-time-and-iso-8601): File Formats, 10/11

![On the top row, the number 1700000000, marked Unix timestamp, seconds since 1 January 1970 UTC, is joined by a dashed line marked same moment to 2023-11-14T22:13:20Z, marked ISO 8601, year first, T, then time, Z for UTC. Below, a lit-up box holds the UUID 4149014e-eabb-4fab-a179-5177233cc0e5, with a note that it has groups of 8, 4, 4, 4 and 12 hex digits and the 4 starting the third group means version 4.](https://learn.benibix.com/diagrams/dev2-time-ids.svg)

---

Source: https://learn.benibix.com/term/development/iso-8601
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
