Date Difference Calculator
Calculate end-date minus start-date in calendar days using UTC midnight boundaries, without local daylight-saving fractions.
How to use the tool
- Select the start date.
- Select the end date.
- Calculate the signed difference.
Example and interpretation
2024-02-28 through 2024-03-01 has a gap of 2 days because leap year 2024 includes February 29. Reversing the inputs gives −2.
Limits
This is elapsed date-boundary difference, not an inclusive count, business-day calendar or holiday calculation. Both dates must be valid. It does not calculate local elapsed hours.
Troubleshooting
If your task counts both endpoints, apply that convention separately. Nights, billing periods and working days can use different definitions.
Frequently asked question
Why are DST changes ignored?
Date-only values are compared at UTC midnight, so a calendar-day gap does not become a 23- or 25-hour fraction.
Technical reference
For the underlying timestamp model, see MDN’s JavaScript Date reference.





