Skip to content
hateitall

ISO 8601 Date Formatter

Get the exact ISO 8601 string for a date, time and zone, and read or write durations such as P1DT12H.

Processed locallyIn: Date, Time, Time zone, DurationOut: ISO 8601

Loading tool…

How to use iso 8601 date formatter

  1. Pick the date and time, and the time zone they are in.

  2. Copy the form you need: with offset, UTC with Z, basic, week date or ordinal date.

  3. Paste a duration like P3W or PT45M to read it in words, or build one from fields.

What this tool does

  • Eleven forms, including extended and basic format, UTC with Z, week date, ordinal date and RFC 3339.
  • The right UTC offset for the chosen IANA time zone on that date, daylight saving included.
  • Warns when the local time is skipped or repeated by a clock change.
  • Reads and builds ISO 8601 durations, with total seconds when the length is fixed.

How the result is verified

The UTC form comes from the browser's own Date.toISOString() for the same instant, so it can be compared with the offset form: subtracting the offset from the local time gives the UTC time.

Frequently asked questions

What is the difference between Z and +00:00?

Both mean UTC. Z (spoken 'Zulu') is the short form. RFC 3339 also allows -00:00 to say the local offset is unknown.

What does PT30M mean?

A duration of 30 minutes. P starts every duration and T separates the date part from the time part, so P30M is 30 months while PT30M is 30 minutes.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Epoch seconds, ms, µs and ns to dates in any time zone and back

Unix timestamp · ISO 8601 · Date→ Unix timeLight on device

One time in many zones, with daylight saving and day changes shown

Date · Time · Time zone→ DateLight on device

ISO week of a date, or the dates of a week number

Date · Number→ Week numberLight on device

'3 days ago' and 'in 2 weeks' in 15 languages, with the code

Date · Time→ TextLight on device