Date Difference
Calculate the difference between two dates.
Date interval
Input
OutputElapsed time
ReadyDirection: End is after start Total days: 7.0000 Total hours: 168.00 Total minutes: 10080.00 Total seconds: 604800 Breakdown: 7d 0h 0m 0s Start: 2026-09-14T20:41:00.000Z End: 2026-09-21T20:41:00.000Z
Status
7 days, 0 hours, 0 minutes, 0 seconds.
How it works
Enter a start and an end date and the difference is broken down into days, hours, minutes, and seconds, alongside the total expressed in each unit on its own, which is what you need when a service level target is written in hours or a retention window in days.
The calculation works on absolute instants, so the result is never negative; when the end precedes the start, the interval is flagged as reversed instead. Both dates are echoed back in ISO 8601 form so you can confirm they were parsed as intended.
Dates are parsed by the browser, so a date with a time and an offset, such as 2026-08-23T14:30:00+02:00, is compared correctly against one in another zone.
Frequently asked questions
- Does the calculation include the end date?
- No. It measures the interval between the two instants, so 1 March to 2 March is one day, not two. Add a day yourself if you need an inclusive count of calendar days.
- How are daylight saving changes handled?
- The difference is measured in absolute time, so a day that gained or lost an hour is counted as it really elapsed: 23 or 25 hours rather than a nominal 24.
- Why is the number of days not a whole number?
- The total in days divides the full interval, including the leftover hours and minutes. The whole-day figure appears separately in the days, hours, minutes, and seconds breakdown.
- Can I calculate a difference in working days?
- Not yet. The calculator counts elapsed calendar time, so weekends and public holidays are included in the result.
- What date format should I enter?
- ISO 8601 is the safest, such as 2026-08-23 or 2026-08-23T14:30:00Z. A date without a time is read as midnight, and other formats depend on what your browser accepts.