ISO 8601 Date Interval Calculator
Calculate start dates, end dates, or durations.
How the ISO 8601 Date Interval Calculator Works
The ISO 8601 Date Interval Calculator reads or builds intervals written in the ISO 8601 format, such as 2026-01-01/2026-04-01 or 2026-01-01/P90D, and returns the day count or end date.
Enter the start
Enter a start date in YYYY-MM-DD format.
Enter an end or a duration
Enter an end date, or a duration such as P90D (90 days) or P3M (3 months).
Resolve the interval
The calculator adds the duration to the start, or subtracts the start from the end.
Read the ISO string
The result shows the interval in start/end and start/duration forms.
How the Count Is Calculated
The ISO 8601 Interval formula links a start, an end and a duration.
Start/End → Duration = End − Start
Start/Duration → End = Start + Duration
Duration format: PnYnMnDTnHnMnS or PnW- P
- Duration designator, always first.
- Y, M, D
- Years, months and days.
- T
- Separates the date part from the time part (H, M, S).
- W
- Weeks, used alone, such as P6W.
Example: 2026-01-01/P90D ends on 2026-04-01. The interval 2026-01-01/2026-04-01 equals P90D, or P3M in calendar months.
Worked Examples
The table explains common ISO 8601 duration strings.
| ISO duration | Meaning | Days |
|---|---|---|
| P1D | 1 day | 1 |
| P1W | 1 week | 7 |
| P30D | 30 days | 30 |
| P6W | 6 weeks | 42 |
| P3M | 3 months | 89–92 |
| P1Y | 1 year | 365 or 366 |
| P1Y2M10DT2H30M | 1 year, 2 months, 10 days, 2 hours, 30 minutes | ~436 |
What the Tool Measures
An ISO 8601 Date Interval Calculator is a tool that works with time intervals written in the ISO 8601 standard.
ISO 8601 defines 4 interval forms: start/end, start/duration, duration/end and duration only. The slash (/) separates the 2 parts, and month and year durations vary in day length.
When to Use This Tool
There are 4 main uses of the ISO 8601 Date Interval Calculator, including APIs and calendar files.
APIs and JSON
Developers send durations such as PT30M or P7D in JavaScript Object Notation (JSON) payloads.
Calendar files
iCalendar (.ics) events store durations in ISO format.
Video metadata
Platforms store video length as ISO durations, such as PT4M13S.
Data validity
Open-data portals publish coverage periods as ISO intervals.