ISO 8601 is an international standard for representing dates and times as unambiguous, sortable strings — YYYY-MM-DD for a date, YYYY-MM-DDTHH:MM:SS for a date and time, optionally with a time zone offset or a trailing Z for UTC. It's published by the International Organization for Standardization, and RFC 3339 defines a stricter, internet-focused profile of it that most web APIs actually implement.
The format is designed so that lexical (string) sorting matches chronological sorting, and so no reader can mistake which part is the day versus the month — the classic ambiguity between 03/04/2026 (March 4th or April 3rd, depending on locale) doesn't exist in ISO 8601:
2026-09-29 → date only
2026-09-29T14:30:00Z → date + time, UTC ("Z" = zero offset)
2026-09-29T10:30:00-04:00 → same instant, explicit -4h offset
2026-09-29T14:30:00.500Z → with fractional seconds
The T separates the date and time portions; a time zone offset (+HH:MM/-HH:MM) or the literal Z for UTC is required for the string to represent an unambiguous instant rather than just a "wall clock" reading with no zone attached. ISO 8601 also defines duration (P1DT2H) and interval notations, though those see far less real-world use than the date/time formats.
Z (2026-09-29T14:30:00) is technically incomplete per the strict standard — always include a zone/offset when the value needs to represent one specific instant.Intl.DateTimeFormat output, or anything showing month names) are not ISO 8601 — the standard's whole point is a fixed, non-localized representation.Z suffix specifically denotes.