Skip to content
Really Cool Online Tools logoReally Cool Online Tools

CAL-010

Date & Time Difference Calculator

Two dates, and every reasonable way of describing the gap between them: in years, months and days the way a person would say it, as a flat count of days, as working days only, and as hours and minutes if the time of day matters.

  • Free
  • No signup
  • Private · runs locally
From
To

Difference

8 hours

Total days
0
Weekdays
0

Monday to Friday

Full weeks
0
Total hours
8
Total minutes
480

How to use it

  1. Pick the first date, and the time if you need it.
  2. Pick the second date. The order does not matter; the tool says so and counts the gap either way.
  3. Untick the time box if you only care about whole days.
  4. Read the phrase at the top for the human answer, and the figures underneath for the exact counts.

Why counting days is harder than it looks

The obvious method, subtracting one timestamp from the other and dividing by the number of milliseconds in a day, is wrong twice a year. The day a clock goes forward is 23 hours long and the day it goes back is 25, so that division produces 0.96 of a day or 1.04 of a day instead of exactly one.

This counts calendar days on the calendar instead, which is what someone means when they ask how many days there are between two dates. Only the hours and minutes come from arithmetic.

Months are handled the same way. There is no average month here: the tool borrows the real length of the month it is borrowing from, which is why 31 January to 1 March is not the same count as 31 March to 1 May.

Frequently asked questions

Are both the start and end date counted?

The total days figure is the gap between them, so 1 March to 3 March is 2 days. If you are counting days of an event and want both ends included, add one.

What counts as a weekday?

Monday to Friday. Public holidays are not excluded, because they differ by country and often by region within a country. For an exact working-day count against a specific calendar, subtract the holidays yourself.

Does it handle leap years?

Yes. Days are counted on the calendar, so 29 February is counted when it exists and is not when it does not.

What if the second date is earlier than the first?

It still works. The tool says it is counting backwards and gives the size of the gap, rather than showing a negative number you have to interpret.

Read more

Background on when and why to use this.

Other tools people use alongside the Date Difference.

Browse all business & finance calculators or see every tool.