Skip to content
CalculatPage

Date Difference Calculator

See exactly how much time lies between two dates, broken down into years, months and days.

Updated November 2026 · How we build calculators

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Date Difference Calculator works

Whole years and months are counted on the calendar from the earlier date, and the remaining days are what is left. Totals in weeks and days come from the raw day difference.

Formula used

Difference = later date − earlier date

Total days = (later − earlier) in days

Step-by-step example

Using the default values in the calculator above:

  1. Start date: 2024-02-14
  2. Start time (optional): (blank)
  3. End date: 2026-11-22
  4. End time (optional): (blank)
  5. Count the end date too?: No

The calculator then applies the formula above and returns:

  • Difference: 2 years, 9 months, 8 days
  • Total months (approx.): 33.3
  • Total weeks: 144 weeks, 4 days
  • Total days: 1,012
  • Total hours (with times): 24,288
  • Total minutes: 1,457,280

Tips and background

Great for tenure, project duration and contract lengths.

Which date calculator should you use?

Use the Date Difference Calculator when you want the gap between two dates as years, months and days. If your question is a bit different, one of these may fit better:

Calendar differences, not just day counts

From February 14, 2024 to November 22, 2026 is 2 years, 9 months and 8 days, or 1,012 days in total. The calculator counts whole calendar months first, so a month is never forced to 30 days. Add times for hours and minutes.

Inclusive vs exclusive end dates

A standard difference doesn't count the end date. Switch on 'count the end date too' for situations like hotel stays or leave days where both the first and last day count. For simple day totals use the days between dates calculator, for weeks see the weeks calculator and for workdays the business days calculator.

What happens around month ends and leap years?

From and toResultTotal days
31 Jan 2026 to 1 Mar 20261 month, 1 day29
28 Feb 2024 to 1 Mar 20242 days2
28 Feb 2025 to 1 Mar 20251 day1

Months have different lengths, so a result in months and days depends on the calendar. When the start day does not exist in the month being counted from, as with the 31st before March, this tool counts from the last day of that month.

Which number should you quote?

Use total days for contracts, interest and anything measured precisely. Use years, months and days for ages, service length and anniversaries. Turning on the include-end-date option changes the answer by one day: from 1 January to 31 December 2026, counting both dates gives 365 days. Say which rule you used, because two correct methods can differ by that one day.

Common mistakes to avoid with the Date Difference Calculator

  • Forgetting whether the end date should count.
  • Treating every month as 30 days.
  • Ignoring time zones when comparing times.

Frequently asked questions

Does the calculator include the end date?

Not by default, because it measures elapsed time. Set 'Count the end date too' to Yes to include both dates.

What if the end date is earlier?

The dates are swapped automatically.

How are months of different length handled?

By calendar months.

How many months between two dates?

The calculator shows whole months plus leftover days.

How do I include the last day?

Turn on 'count the end date too'.

Does it handle leap years?

Yes, it uses the real calendar.