Measure the elapsed days between two dates
From February 28 to March 1 in 2024, two days elapse because February 29 is in the interval. For the same month and day in 2025, one day elapses.
The start date is day zero, so matching dates give zero. To count both calendar dates for a reservation or roster, add one to the nonnegative elapsed-day count. Reverse the dates to see a negative difference.
Date Difference Calculator formula
Day difference=(end UTC date−start UTC date)/86,400,000 milliseconds.
Inputs and units
| Input | Format / range | Example |
|---|---|---|
| Start date | Calendar date | 2026-01-01 |
| End date | Calendar date | 2026-10-06 |
Worked example
The values listed in Inputs and units give 278 days for Date difference.
- Date difference
- 278 days
- Absolute day difference
- 278 days
- Weeks
- 39.7143
Results and assumptions
The difference is the end date minus the start date. Calendar-day counts are independent of your time zone and daylight saving time.
