ISO-8601 Date-Time Parser

Break down an ISO-8601 string into its component fields

Ad placeholder (leaderboard)

ISO-8601 strings pack a full date-time and timezone into a single token like 2026-06-06T14:30:00+01:00. This parser pulls that token apart so you can inspect every field individually — invaluable when debugging an API response, a log line, or a date that “looks right but isn’t”. Everything is computed locally in your browser.

How it works

The parser matches the string against a strict ISO-8601 regular expression that captures each component:

^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|[+-]\d{2}:\d{2})?)?$

Each captured group is then range-checked: the month must be 1–12, the day must be valid for that month and year (including the leap-year rule for February), the hour must be 0–23, and minutes and seconds 0–59. Once the fields pass validation, the tool also computes the absolute instant by handing the string to the Date API, giving you the UTC date-time and epoch seconds.

Example

Parsing 2026-06-06T14:30:00.250+01:00 yields:

FieldValue
Year2026
Month06
Day06
Hour14
Minute30
Second00
Fraction250
Offset+01:00

The same instant in UTC is 2026-06-06T13:30:00.250Z, because the +01:00 offset means local time is one hour ahead of UTC.

Tips and notes

  • A trailing Z (Zulu) is equivalent to an offset of +00:00.
  • If the offset is missing, treat the time as “local to some unknown clock” — pin it down before doing arithmetic.
  • The wall-clock fields and the UTC instant differ by exactly the offset; comparing the two is a quick sanity check.
Ad placeholder (rectangle)