Glossary
ISO 8601
The unambiguous date-time text format
ISO 8601 is the international standard for representing dates and times as text. Published by the International Organization for Standardization in 1988 and revised periodically since. The canonical form for a full timestamp is:
YYYY-MM-DDTHH:MM:SSZ
— for example, 2026-05-14T14:30:00Z. The T separates the date and time portions; the Z indicates UTC (Zulu time, in military nomenclature). For zones other than UTC, the suffix is the signed offset: +03:00 for Istanbul, -05:00 for US Eastern in winter.
Why ISO 8601 won the format war:
- Unambiguous.Most other date formats collide. “01/02/2026” means January 2nd in the US and February 1st almost everywhere else. ISO 8601 has one parsing.
- Sortable as a string. Lexicographic order equals chronological order.
2026-05-14sorts after2026-05-13by simple text comparison. - Locale-independent. Independent of which month-name language the reader uses.
- Year-first means trivially extractable. Need just the date from a timestamp? Take the first 10 characters.
Modern programming languages and APIs default to ISO 8601. JavaScript’s Date.prototype.toISOString() emits ISO 8601. JSON has no native date type; ISO 8601 is the unspoken convention. PostgreSQL, MySQL, MongoDB, and SQLite all accept ISO 8601 strings as date inputs.
RFC 3339 is a stricter subset of ISO 8601 used by Internet protocols. The difference is small — RFC 3339 requires the T separator (ISO 8601 allows a space) and requires a timezone offset (ISO 8601 allows omitting it). For all practical purposes treat them as the same standard.
Related
Published May 14, 2026