VClock

ISO 8601: The International Date and Time Format, Explained With Examples

Is 03/04/2026 the 3rd of April or the 4th of March? ISO 8601 removes the guesswork. Here is how the format works, from simple dates to week numbers and durations.

By the VClock editorial team · Published 21 November 2026 · 5 min read · How we write

ISO 8601 is the international standard for writing dates and times. It was first published by the International Organization for Standardization in 1988, revised in 2000 and 2004, and split into two parts in 2019. You do not need to read the standard to benefit from it: the core idea is simply to write the largest unit first and the smallest last, with fixed numbers of digits.

Dates: YYYY-MM-DD

A calendar date is written as four-digit year, two-digit month and two-digit day, separated by hyphens:

2026-11-21    21 November 2026
2027-03-04    4 March 2027

This solves the day/month problem. In the United States 03/04/2027 usually means 4 March; in most of Europe it means 3 April. 2027-03-04 can only mean 4 March, because no country writes year-day-month. The format also sorts correctly as plain text: if you name files 2026-11-21-report.pdf, an alphabetical listing is also a chronological one.

The "basic" format drops the hyphens (20261121). It is valid but harder for people to read, so the hyphenated "extended" format is preferred wherever humans will see it.

Times: hh:mm:ss in 24-hour form

Times use the 24-hour clock with two digits for each unit:

09:05         five past nine in the morning
21:30:15      half past nine in the evening plus 15 seconds
14:00:00.250  a quarter of a second after 14:00

There is no am or pm. Midnight at the start of a day is 00:00. If you need to understand the conversion from the 12-hour clock, see 12-hour vs 24-hour time. Fractions of a second follow a decimal point (a comma is also permitted by the standard).

Combining date and time: the "T"

A full timestamp joins the two with the letter T:

2026-11-21T14:30:00

Without more information, that is a "local time": 14:30 somewhere, but we do not know where. For anything shared across places, add a time zone designator.

Time zones: Z and offsets

ISO 8601 does not use zone names like "CET" or "Europe/Riga". It uses the offset from UTC:

2026-11-21T14:30:00Z        14:30 UTC ("Z" = zero offset)
2026-11-21T16:30:00+02:00   16:30 in a zone two hours ahead of UTC
2026-11-21T09:30:00-05:00   09:30 in a zone five hours behind UTC

All three lines describe exactly the same instant. The letter Z comes from the aviation and military name for UTC, "Zulu time"; see What is UTC? An offset tells you the relationship to UTC at that moment, but not which region's rules apply, so it cannot tell you what the offset will be next month. For future events in a specific place, software usually stores an IANA zone name alongside the time.

Use the time zone converter to produce the ISO string for any date, time and place.

Week dates: 2026-W47-6

ISO 8601 also defines a week-numbering system that is widely used in European business, manufacturing and payroll:

  • Weeks start on Monday (day 1) and end on Sunday (day 7).
  • Week 1 is the week containing the year's first Thursday. Equivalently, it is the week that contains 4 January.
  • A year therefore has 52 or 53 weeks.

21 November 2026 is a Saturday in week 47, written 2026-W47-6. Because of the Thursday rule, the first days of January can belong to the last week of the previous ISO year, and the last days of December can belong to week 1 of the next. For example, 1 January 2027 is a Friday, so it falls in the week that started on Monday 28 December 2026: 2026-W53-5. That catches people out in spreadsheets that use a different week rule. Our exact time page shows today's ISO week.

Ordinal dates: 2026-325

An ordinal date gives the year and the day of the year, from 001 to 365 (or 366 in a leap year). 21 November 2026 is day 325, written 2026-325. Ordinal dates are common in food and manufacturing date codes, astronomy and some military contexts because they make it easy to count days between dates within a year.

Durations: P1DT2H30M

A duration starts with P (for "period"). Date parts come first, then T, then time parts:

DurationMeaning
PT25M25 minutes (one Pomodoro)
PT1H30M1 hour 30 minutes
P3D3 days
P1Y2M10DT2H30M1 year, 2 months, 10 days, 2 hours and 30 minutes
P2W2 weeks

Note that P1M is one month and PT1M is one minute; the T makes the difference. You see durations in video metadata, calendar files and many programming libraries.

Intervals

An interval can be written as start and end, start and duration, or duration and end, separated by a slash:

2026-11-23T09:00Z/2026-11-23T10:30Z
2026-11-23T09:00Z/PT1H30M

Repeating intervals add R and a count, such as R5/2026-11-23T09:00Z/P1D for five daily repetitions.

ISO 8601 and RFC 3339

Internet standards often refer to RFC 3339, a stricter "profile" of ISO 8601 for timestamps. It requires a full date, a full time and an offset or Z, as in 2026-11-21T14:30:00Z. It does not use week dates, ordinal dates or durations. If you are writing a timestamp for an API or log file, following RFC 3339 is a safe choice. JavaScript's new Date().toISOString(), for example, always produces a UTC timestamp in this style, such as 2026-11-21T14:30:00.000Z.

Common mistakes

  • Dropping leading zeros. 2026-3-4 is not valid ISO 8601 and does not sort correctly. Write 2026-03-04.
  • Mixing up the offset sign. +02:00 means the local time is two hours ahead of UTC. To get UTC, subtract two hours.
  • Treating a timestamp without an offset as UTC. Different software assumes different things. Always include Z or an offset when the time will be read elsewhere.
  • Using "24:00". The older editions of the standard allowed 24:00 to mean the end of a day, but many systems reject it. Use 23:59:59 or 00:00 of the next day.
  • Using a calendar week rule other than ISO. Some US systems count weeks from Sunday, with week 1 containing 1 January. Say which rule you mean when you share week numbers internationally.

Where to use it

Use ISO 8601 for file names, spreadsheets, databases, logs, international emails where the reader's convention is unknown, and anything a computer will parse. In ordinary prose for a known audience, writing "21 November 2026" or "November 21, 2026" is perfectly fine and friendlier to read; just avoid the all-numeric local formats when your readers may be in different countries.

Related on VClock

Page last reviewed 21 November 2026 by the VClock team. Spotted an error? Tell us.