ISO 8601 Date & Duration Converter
Format dates as ISO 8601 (UTC, offsets, week and ordinal dates) and turn durations like P1Y2M10DT2H30M into plain English.
Runs in your browser. Nothing is uploaded.
Type a date above, or press Now.
Durations start with P; time parts come after T, likeP3DT4H or PT45M.
How to use the ISO 8601 Date & Duration Converter
- Type or paste a date under Format a date. ISO 8601, a Unix timestamp or
YYYY-MM-DD HH:MMall work. Press Now for the current time. - Choose a zone under Show in time zone to see the same instant with that zone's offset.
- Copy any of the forms shown, including the week date, ordinal date and compact basic format.
- Paste a duration such as
PT45MorP1Y2M10DT2H30Munder Read a duration to see it in plain English.
The international date format
ISO 8601 is the international standard for writing dates and times. Its basic idea is simple:
write the biggest unit first, use fixed widths, and say which time zone you mean. 2026-10-30
can’t be confused with 10 March or 3 October the way 10/03/2026 can, and dates written this way
sort correctly as plain text. That’s why ISO 8601 is used in JSON APIs, databases, log files, file
names and data exchange between countries.
The forms this tool shows
A full timestamp looks like 2026-10-30T14:05:00+05:30: date, the letter T, time, and the offset
from UTC. The converter normalises any instant to UTC (2026-10-30T08:35:00Z) and to the offset of
any zone you choose, using that zone’s rules on that date. It also shows:
- Date only, for birthdays, due dates and anything without a time.
- Week date, such as
2026-W44-5, used in manufacturing, retail and payroll calendars that plan by week number. - Ordinal date, such as
2026-303, the day of the year, common in logistics and scientific data. - Basic format, such as
20261030T083500Z, the compact form without separators, used in file names and calendar files. - Unix seconds, for systems that store epoch time.
Durations
ISO 8601 also defines how to write a length of time. A duration starts with P (period), lists
years, months, weeks and days, then a T before hours, minutes and seconds. PT45M is
45 minutes, P3D is three days and P1Y2M10DT2H30M is 1 year, 2 months, 10 days, 2 hours and
30 minutes. You’ll see these in video metadata, YouTube’s API, cloud configuration, calendar
alarms and timeout settings. The common confusion is P1M (one month) against PT1M (one minute):
the T makes all the difference.
The tool spells durations out in words and gives an approximate number of seconds. Because months and years vary in length, that total uses 30-day months and 365-day years and is clearly labelled as approximate.
Private and offline
Parsing and formatting use your browser’s built-in date and Intl functions. Nothing you type
is uploaded.
Frequently asked questions
What does the T and Z mean in 2026-10-30T08:35:00Z?
The T separates the date from the time. The Z means the time is in UTC (it stands for "Zulu", the military name for the zero offset). An offset like +05:30 means the time is 5½ hours ahead of UTC.
Is ISO 8601 the same as RFC 3339?
Almost. RFC 3339 is a stricter profile of ISO 8601 used by internet protocols and most APIs. The full date-time forms this tool produces, such as 2026-10-30T08:35:00Z, are valid in both.
What is an ISO week number?
ISO weeks start on Monday, and week 1 is the week that contains the year's first Thursday. So 1 January can belong to week 52 or 53 of the previous year. The week date 2026-W44-5 means the fifth day (Friday) of week 44.
Why is P1M not converted to an exact number of seconds?
A month can have 28 to 31 days and a year 365 or 366, so their length depends on the start date. The tool gives an approximate total and says which lengths it assumed.
What happens if my date has no time zone?
It's read as UTC, and the tool tells you so. Add Z or an offset to be explicit.
Tutorials
How to read ISO 8601 dates and durations from an API
Make sense of timestamps like 2026-10-30T14:05:00+05:30 and durations like PT45M in API responses, and convert them to your time zone.