Formats & Time Zones

ISO 8601 Interval Generator

Format supplied dates as an interval.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

How ISO 8601 Interval Generator Works?

The ISO 8601 Interval Generator works by joining a start and an end, or a start and a duration, with a slash in ISO 8601 notation.

  1. 1

    Enter the start date

    Pick the start of the interval.

  2. 2

    Enter the end or duration

    Pick an end date, or enter a duration such as 3 months.

  3. 3

    Pick the interval form

    Start/end, start/duration or duration/end.

  4. 4

    Copy the result

    The output is a valid ISO 8601 interval string.

ISO 8601 Interval Generator Formula

The ISO 8601 interval pattern is Start/End, Start/Duration or Duration/End, with durations written as PnYnMnDTnHnMnS.

Start/End:       2026-01-01/2026-03-31
Start/Duration:  2026-01-01/P3M
Duration/End:    P90D/2026-03-31
Duration:        P[n]Y[n]M[n]W[n]DT[n]H[n]M[n]S
P:
Period designator, always first
Y, M, W, D:
Years, months, weeks, days
T:
Separates date parts from time parts
H, M, S:
Hours, minutes, seconds (after T)

Example: A project from Feb 2, 2026 to May 29, 2026 is written 2026-02-02/2026-05-29, or 2026-02-02/P116D as a start and day duration.

ISO 8601 Interval Generator Conversion Table

The table writes 6 periods as ISO 8601 durations and intervals.

PeriodISO DurationExample Interval
1 dayP1D2026-11-25/P1D
2 weeksP2W2026-11-25/P2W
90 daysP90D2026-01-01/P90D
3 monthsP3M2026-01-01/P3M
1 year, 6 monthsP1Y6M2026-01-01/P1Y6M
1 day, 12 hoursP1DT12H2026-11-25T00:00Z/P1DT12H

What is ISO 8601 Interval Generator?

An ISO 8601 Interval Generator is a tool that writes a time interval in the ISO 8601 standard notation.

ISO intervals describe a span of time as text. Calendar software, metadata standards and data catalogs use them to store periods such as "January to March 2026".

P3M and P90D differ. P3M means 3 calendar months (89 to 92 days). P90D means exactly 90 days.

What are the uses of ISO 8601 Interval Generator?

There are 5 main uses of the ISO 8601 Interval Generator, including metadata, API filters and recurring rules.

  • Metadata

    Archivists record coverage periods of datasets.

  • API filters

    Developers pass time ranges to APIs.

  • Recurring rules

    Engineers define repeating intervals such as R5/2026-01-01/P1W.

  • Contracts in data

    Systems store contract terms as durations.

  • Scheduling tools

    Teams write task durations in a standard form.

Related Formats & Time Zones Tools

View All 141 Tools →