Date interval calculator
Calculate the absolute elapsed day difference between two browser date inputs.
Inputs stay in your browser
Interactive tool
Enable JavaScript to use the interactive controls. The guide below is available without JavaScript.
The date interval calculator validates two Gregorian calendar dates and returns their absolute elapsed calendar-day difference.
When to use this tool
- Check the elapsed-day gap between two ordinary dates.
- Compare two deadlines without manually counting calendar squares.
How to use
- Select the start date.
- Select the end date.
- Review the absolute number of elapsed days.
Example
January interval
From 2024-01-01 to 2024-01-31 the tool returns 30 days.
How it works
- Each strict YYYY-MM-DD input is constructed as a UTC Gregorian calendar date, then the absolute day-boundary difference is calculated. This avoids local timezone and daylight-saving shifts.
Limits and notes
- The count is an elapsed difference and is not inclusive of both endpoint dates; January 1 to January 31 returns 30, not 31.
- Invalid rollover dates such as February 30 are rejected.
- Business days, holidays, months, and calendar schedules are not calculated.
Frequently asked questions
Does the order of the dates matter?
No. The absolute difference is used.
Are both start and end dates counted?
No. The result is the elapsed gap between them.
Does it exclude weekends?
No. Every elapsed day is treated equally.
References
Related tools
Send tool feedback
The message includes page context only, never tool input or results.
Send tool feedback