ISO 8601 Interval Generator
Format supplied dates as an interval.
--
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
Enter the start date
Pick the start of the interval.
- 2
Enter the end or duration
Pick an end date, or enter a duration such as 3 months.
- 3
Pick the interval form
Start/end, start/duration or duration/end.
- 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.
| Period | ISO Duration | Example Interval |
|---|---|---|
| 1 day | P1D | 2026-11-25/P1D |
| 2 weeks | P2W | 2026-11-25/P2W |
| 90 days | P90D | 2026-01-01/P90D |
| 3 months | P3M | 2026-01-01/P3M |
| 1 year, 6 months | P1Y6M | 2026-01-01/P1Y6M |
| 1 day, 12 hours | P1DT12H | 2026-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 →Date Format Converter
Convert between specified date formats.
ISO 8601 Date Converter
Convert dates into or from ISO notation.
Calendar Date Validator
Check month lengths, leap days, and date validity.
Ambiguous Date Format Checker
Identify dates with multiple possible interpretations.
Unix Timestamp To Date Converter
Convert timestamps using a selected time zone.
Date To Unix Timestamp Converter
Convert a date and time into a timestamp.