Time & dates
Days between dates
Count the days. A simple way to see the space between two dates.
How it works
Days between dates
The default counts the calendar-day distance. Inclusive mode adds one: the same date yields zero normally or one inclusively. Calendar arithmetic avoids device time-zone and daylight-saving offsets.
How to use this tool
- Select two valid calendar dates. Enable inclusive counting when both endpoint dates should count.
- Calculate and read the number of days. Reversing the dates keeps the same absolute distance.
Understanding the result
The default counts the calendar-day distance. Inclusive mode adds one: the same date yields zero normally or one inclusively. Calendar arithmetic avoids device time-zone and daylight-saving offsets.
Worked examples
2024-02-28 → 2024-03-01: 2
2024-02-28 → 2024-03-01: 3 (+1)
2024-03-01 → 2024-03-01: 0
Good to know
Calendar days, not 24-hour periods. Leap years are included; holidays and business days are not filtered.
This is not elapsed hours, working days or a holiday calculation. Dates range from year 1 to 9999. Make the inclusion convention explicit when comparing a result with another system.
A few quick answers
Does a leap day count?
Yes. From 28 February to 1 March 2024 the distance is two days, or three dates with inclusive counting.
Sources and implementation
Implementation for this tool: UTC · calendar days
Maintained by Chpl Limited · Updated: