Date and Time Difference Calculator

Measure the exact time between two moments, in days, hours and minutes, using the dates and the times of day.

Start date

Leave empty for midnight (00:00).

End date

Leave empty for midnight (00:00).

Elapsed time

Enter the two dates and times, then select Calculate the difference.

How elapsed time is measured

How to use the date and time difference calculator

  1. Enter the start date and, optionally, the start time.
  2. Enter the end date and, optionally, the end time. Empty times count as midnight.
  3. Select Calculate the difference to see the time between the two moments in days, hours and minutes, and in total hours, minutes and seconds.

How the difference is measured

The calculator turns each date and time into a moment in your device’s time zone and subtracts one from the other. The result is real elapsed time. If daylight saving time starts or ends between the two moments, the hour that the clocks skip or repeat is taken into account, and the result says so. From 9:00 on the Saturday before the spring change to 9:00 on the Sunday is 23 hours, not 24.

The headline gives days, hours and minutes. The totals are useful for timesheets, billing and travel: total hours appears both as hours and minutes and as a decimal, so 2 hours and 30 minutes is also shown as 2.5 hours.

Worked examples

Calculated with the same code as the calculator, using 24-hour days
FromToDifferenceTotal hours
November 25, 2026, 09:00November 27, 2026, 17:302 days, 8 hours and 30 minutes56.5
December 31, 2026, 22:15January 1, 2027, 01:052 hours and 50 minutes2.83
November 25, 2026, 08:00December 25, 2026, 08:0030 days720

When to use days instead

If you only need whole days, the difference between two dates without times, the days between dates calculator is simpler and can include or exclude the end date. For working days only, use the business days calculator. To find a date a number of days or months away, use the date calculator.

Time zones

Both moments are read in your device’s time zone. The calculator measures elapsed time between two moments; it does not convert clock times between cities. To measure a flight or a call between two time zones, convert both times to the same zone first: for example, a flight leaving New York at 18:00 and landing in London at 06:00 the next morning (London time) departs at 23:00 London time, so it lasts 7 hours. The age in seconds calculator uses the same method to count your age from your time of birth.

Frequently asked questions

How many hours are there between two dates?

Enter both dates (and times, if you have them). The result shows total hours, both as whole hours and minutes and as a decimal number.

Does the calculator handle daylight saving time?

Yes. The difference is real elapsed time in your time zone, so a daylight saving change between the two moments adds or removes an hour, and the result mentions it.

What happens if I leave the times empty?

Both times are taken as midnight, so the result is a whole number of days (unless a daylight saving change falls between them).

Can the end be earlier than the start?

Yes. The calculator swaps the two moments and tells you it did.