What Is ISO 8601?

ISO 8601 is an international standard for writing dates and times in a consistent order, helping people and software avoid many common ambiguities.

ISO 8601: 2026-05-04, Calendar date; T09:30:00, Clock time; Z, UTC marker.

A predictable order

Many everyday date formats put the day and month in different orders depending on the country. A value such as 04/05/2026 can mean 4 May or April 5. ISO 8601 starts with the largest date unit and moves toward the smallest: year, month, day. A calendar date can therefore be written as 2026-05-04.

A common date-time form adds the letter T, then the time. For example, 2026-05-04T09:30:00 represents 9:30 on that date, but without an offset or zone it does not identify a unique global moment. This distinction is important: the familiar shape of a date-time string does not automatically make it UTC.

Offsets and the Z marker

A numeric offset tells how local clock time relates to UTC. The value 2026-05-04T09:30:00+05:30 means the clock reads 9:30 in a place using UTC+05:30. The same instant is 2026-05-04T04:00:00Z in UTC. The trailing Z is a marker for UTC, sometimes read as “Zulu.”

An offset is not the same as a named time zone. The string with +05:30 gives a numeric relationship for this value; it does not say which region's rules apply to a future event. For future appointments, keep an identifier such as Asia/Kolkata when that local rule matters.

Diagram of the timestamp 2026-12-05T16:30:00+08:00 split into the date, the T separator, the 24-hour time and the +08:00 UTC offset; the same instant in UTC is 2026-12-05T08:30:00Z.
The parts of an ISO 8601 / RFC 3339 timestamp. The offset says how far the local clock is from UTC.

Date-only values need care

2026-05-04 is a calendar date, not necessarily midnight at the start of that date in UTC. A birthday, public holiday or invoice due date may be a date without a time. Converting it to a timestamp requires an additional choice, often a time and a zone. Software should preserve date-only values as dates instead of silently assigning UTC midnight.

Sorting and precision

ISO-style strings are easy to read and often work well in APIs and logs. If all values use the same time zone, the same precision and the same component order, their text order can match chronological order. Strings with different offsets do not always sort by instant, and differing fractional-second precision can complicate comparisons. Parse values into actual date-time objects when correctness matters.

When to use it

Use an ISO date for unambiguous calendar dates and a date-time with an explicit UTC marker or offset for an exact moment. Keep the named zone separately when an event is governed by local civil-time rules. The timestamp converter displays a timestamp in ISO form as well as local and UTC forms.

For a standards overview, see ISO's introduction to the 8601 date and time format.

ISO week dates and ordinal dates

The standard also includes ways to write a week date or an ordinal date, in addition to the familiar year-month-day form. A week date identifies a week-year, week number and weekday. An ordinal date identifies the day number within a year. These forms can be useful in industries that plan by production week or day-of-year, but a reader must know which form is being used.

Week-based years can differ from calendar years near New Year. Do not treat the first four digits in every date-like value as an ordinary calendar year without parsing the complete format. If the application's audience expects regular calendar dates, the extended calendar form YYYY-MM-DD is usually easier to understand.

Time precision and durations

ISO-style date-times can include hours, minutes, seconds and a fractional second. Choose precision according to the source measurement and use case. Adding extra decimal places does not make an imprecise clock more accurate. Systems exchanging values should agree on how many digits are used and how fractions are rounded.

A duration is different from a date-time. A date-time locates a point on a calendar and timeline, while a duration describes an amount of time, such as a number of days or hours. Calendar units like months do not have one fixed number of seconds. Use a duration representation only when both sides agree on how calendar-based units are interpreted.

Parsing and validation

Use a standards-aware parser rather than splitting a date string by punctuation. A parser can validate ranges, recognize offsets and distinguish date-only values from exact instants. It should also reject malformed values instead of quietly normalizing them into a different date.

Some software accepts a broader set of ISO 8601 forms than others. An API should document the exact subset it supports, such as whether it accepts week dates, fractional seconds or a space instead of T. For an internet timestamp with an offset, the IETF's RFC 3339 specifies a more constrained profile.

ISO form does not supply missing meaning

A string like 2026-05-04T09:30:00 is ordered consistently, but without an offset or zone it is still a local date-time with an unknown location. A date-only value likewise does not mean midnight UTC. Keep those distinctions in data models, forms and documentation so a formatting standard is not mistaken for a complete time-zone policy.

For more on the reference represented by Z, read What Is UTC?

Sources and further reading