Date and Time Difference Calculator
Show elapsed days, hours, and minutes.
How the Date and Time Difference Calculator Works
The Date and Time Difference Calculator measures the gap between 2 date-time values and returns days, hours and minutes, not only whole days.
Enter the start date and time
Enter a date plus a clock time, such as 4 December 2026 at 09:15.
Enter the end date and time
Enter the second date and clock time.
Subtract the moments
The calculator subtracts the 2 moments in minutes.
Split into units
The result splits the total into days, hours and minutes.
How the Count Is Calculated
The Date and Time Difference formula subtracts 2 timestamps and splits the minutes.
Total minutes = End − Start
Days = floor(Total ÷ 1,440)
Hours = floor((Total mod 1,440) ÷ 60)
Minutes = Total mod 60- 1,440
- Minutes per day.
- 60
- Minutes per hour.
- mod
- Remainder after division.
Example: 4 December 2026 09:15 to 25 December 2026 18:45 equals 30,810 minutes. The difference is 21 days, 9 hours and 30 minutes (513.5 hours).
Worked Examples
The table converts sample date-time gaps into several units.
| Start | End | Days, hours, minutes | Total hours |
|---|---|---|---|
| 4 Dec 09:00 | 4 Dec 17:30 | 0 d 8 h 30 m | 8.5 |
| 4 Dec 22:00 | 5 Dec 06:00 | 0 d 8 h 0 m | 8 |
| 4 Dec 09:30 | 7 Dec 08:00 | 2 d 22 h 30 m | 70.5 |
| 4 Dec 09:15 | 25 Dec 18:45 | 21 d 9 h 30 m | 513.5 |
| 1 Jan 00:00 | 31 Dec 23:59 | 364 d 23 h 59 m | 8,759.98 |
What the Tool Measures
A Date and Time Difference Calculator is a tool that measures the elapsed time between 2 moments to the minute.
Date-only calculators count midnights. Date-time calculators count elapsed hours, so a 22:00 start and a 06:00 finish on the next day equals 8 hours, not 1 day.
When to Use This Tool
There are 5 main uses of the Date and Time Difference Calculator, including shift length and flight duration.
Shift length
Workers measure overnight shifts that cross midnight.
Flight duration
Travelers compute total travel time across connections.
Response times
Support teams measure hours from ticket open to close.
Parking and rental fees
Garages bill by elapsed hours.
Lab timing
Scientists record incubation and reaction times.