Date Difference Calculator

Pick two dates to get the exact gap in days, weeks and years — including a working-days-only count that skips weekends.

Two dates

Counts calendar days between the dates, handling leap years automatically.

Days between

—

Years, months, days—
Weeks and days—
Working days Mon–Fri—
Weekend days—
Hours—
Minutes—

Add or subtract days

Useful for deadlines, notice periods and delivery windows.

Resulting date

—

Related calculators

How the day count works

The calculator converts both dates to a fixed point in time and divides the difference by the number of milliseconds in a day. That handles leap years automatically — 2024 and 2028 each contribute an extra day without any special rule.

All arithmetic runs in UTC deliberately. Doing it in local time means a clock change during the period can produce a 23 or 25 hour day and round the answer off by one.

Inclusive or exclusive?

From 1 January to 2 January is 1 day if you count the gap, or 2 days if you count both dates themselves. Neither is wrong — they answer different questions. Contracts, hotel stays and notice periods often count inclusively, so the toggle is there to match whichever definition applies to you.

Working days

The weekday count excludes Saturdays and Sundays by walking the range day by day rather than approximating with a divide-by-seven, so it stays exact regardless of which day the range starts on.

It does not exclude public holidays, which vary by country and region. If you are counting a legal deadline, check whether your jurisdiction counts calendar days, business days, or business days excluding holidays — the three can differ by more than a week over a long period.

Why "months" is approximate

Calendar months run from 28 to 31 days, so there is no fixed conversion from days to months. The years-months-days breakdown counts forward from the start date one unit at a time, which is why it can look inconsistent with a simple division: 31 days from 1 January is "1 month", but 31 days from 1 February is "1 month and 3 days".

For working out an age rather than a gap, the age calculator applies the same counting method against today's date. For converting shift lengths into decimal hours, see the time calculator.

Frequently asked questions

How many days are between two dates?
Subtract the earlier date from the later one and divide by the length of a day. This calculator does it in UTC so daylight-saving changes cannot shift the result, and leap days are counted automatically.
Should I count both the start and end date?
It depends what you are measuring. The gap from 1 January to 2 January is 1 day; counting both dates gives 2. Contracts, notice periods and hotel bookings often count inclusively, so use the toggle to match the definition you need.
How do I count working days between dates?
Walk the range and count only Monday to Friday. This calculator does that exactly rather than dividing by seven, so the answer is correct no matter which weekday the range begins on. Note that public holidays are not excluded, since they vary by country.
Why does the months figure look wrong?
Because months are not a fixed length. The years-months-days breakdown steps forward from the start date, so 31 days from 1 January reads as one month, while 31 days from 1 February reads as one month and three days. Both are correct — the underlying months differ in length.
How do I add 90 days to a date?
Use the add-or-subtract tool on this page: enter the starting date and the number of days. Enter a negative number to count backwards. It handles month lengths and leap years for you, which is where manual counting usually goes wrong.

How ListCalc calculates · Report an error

Guides & articles