What is an ISO 8601 date?

ISO 8601 is the international standard for writing dates and times from the largest unit to the smallest: year, month, day, then hours, minutes and seconds. Its best-known forms are 2026-05-17 and 2026-05-17T14:30:00Z, with a T between the date and the time, and Z for UTC or an offset such as +02:00.

The standard has more forms than most people know: 17 May 2026 can also be written 20260517, 2026-W20-7 (the seventh day of week 20) or 2026-137 (the 137th day of the year). You meet ISO 8601 in JSON APIs, databases and log files, and you check a date when a program rejects it.

Tool description

Type or paste a date into the ISO 8601 date field, and the result shows as you type: "ISO 8601 date is valid" or "ISO 8601 date is not valid". Spaces and line breaks around the date are ignored.

Reject dates that don't exist starts off, and then each part only has to be in its range (days 01 to 31 in any month), so 2026-02-30 passes. Turn it on to check the calendar too: then 2026-02-30 and 2026-02-29 fail, while 2028-02-29 passes, as 2028 is a leap year.

Only T between the date and time starts off too, so a space works as well, as in 2026-05-17 14:30, the way many databases print dates. Turn it on, and only a capital T passes.

Forms that pass

  • A date with or without hyphens (2026-05-17 or 20260517), a year and month (2026-05), or a year alone (2026)
  • Week dates (2026-W20-7) and ordinal dates (2026-137)
  • A time to the hour, minute or second, with or without colons: 2026-05-17T14, 2026-05-17T14:30 or 20260517T143000
  • Fractions after a dot or a comma: 2026-05-17T14:30:00.5 or 2026-05-17T14:30:00,5
  • Z or z for UTC, or an offset written as +02:00, +0200 or +02
  • 24:00 for the midnight at the end of a day, as in 2026-05-17T24:00

Forms that fail

  • A year and month without a hyphen, 202605, which ISO 8601 doesn't allow
  • Hyphens in one part of the date but not the other, as in 2026-0517
  • Month 13, day 32 or hour 25
  • A time without a date, such as 14:30
  • A lowercase t between the date and time, or a leap second, 23:59:60

ISO 8601 or RFC 3339?

RFC 3339 is a profile of ISO 8601 for timestamps on the internet, and it keeps just one form: a full date and time with seconds and an offset, such as 2026-05-17T14:30:00Z. So 2026-05-17 and 2026-05-17T14:30 pass here but fail in the RFC 3339 Date Validator, while a lowercase t and the leap second 23:59:60 pass there and fail here.

Good to know

  • Week dates get only a rough check, even with Reject dates that don't exist on: 2026-W00 passes, although weeks are numbered from 01, and so does 2027-W53, although 2027 has only 52 weeks.
  • Day 360 of an ordinal date (2026-360) fails because of a mistake in validator.js, the library behind the check, while days 359 and 361 pass. A T with nothing after it (2026-05-17T) passes.
  • To turn an ISO 8601 date into a Unix timestamp or another format, use the Date Format Converter.

Features

  • Calendar dates, week dates, ordinal dates and times with offsets
  • An optional check for days that don't exist, such as February 30
  • Results as you type, with no button to press
  • Runs in your browser, so nothing you type is sent anywhere