Date & Time Duration Calculator
Measure the exact elapsed time between two date-time stamps, including overnight, cross-month and leap-year spans.
How to Use the Date & Time Duration Calculator
Choose the starting calendar date and the local time in hours and minutes.
Choose the ending date and time. The end may be on the next day or in a later month or year.
The result separates whole days, hours, minutes and seconds, then reports totals in hours, minutes and seconds.
Copy the formatted duration or share the URL to reopen the same start and end stamps.
Formula & Calculation Logic
Both date-times are converted to timestamps, which count milliseconds from a fixed point in time. Subtracting them automatically accounts for different months, leap years and daylight-saving transitions in the browser. The difference is then divided by 3,600,000 milliseconds per hour and decomposed into whole days, hours, minutes and seconds.
Worked Example
Overnight Event Duration
A shift begins at 22:00 on 21 November and ends at 06:30 the next morning. The timestamp difference is 8.5 hours, shown as 0 days 8 hours 30 minutes (510 minutes). A two-day project from 09:00 on 21 November to 17:30 on 23 November spans 2 days 8 hours 30 minutes, or 56.50 total hours.
Common Duration Conversions
Handy reference values for checking a result. Calendar durations count every day; holidays and weekends are not excluded.
| Span | Hours | Minutes | Notes |
|---|---|---|---|
| 1 hour | 1 | 60 | 3,600 seconds |
| 1 day | 24 | 1,440 | 24-hour calendar day |
| 1 week | 168 | 10,080 | Seven calendar days |
| Common year | 8,760 | 525,600 | 365 days |
| Leap year | 8,784 | 527,040 | 366 days |
Visual Explanation Diagram
Elapsed duration is the distance between two timestamps on a continuous timeline.
Frequently Asked Questions
Convert both stamps to timestamps, subtract the start from the end, then divide the difference by hours, minutes or seconds as needed. This tool performs all three conversions for you.
Yes. It uses the browser Date object, so February 29, 30-day months and 31-day months are all handled by the calendar rather than by a fixed 30-day assumption.
Three 24-hour days contain 72 hours, 4,320 minutes or 259,200 seconds.
No. This tool measures continuous calendar duration. It does not subtract weekends, holidays or non-working hours; use the Date Calculator for a business-day count.
Divide the minutes by 60. For example, 30 minutes is 0.5 hours and 45 minutes is 0.75 hours, so 8 hours 45 minutes equals 8.75 hours.