Date Difference Calculator

The date difference calculator counts the exact number of days between two dates. It also breaks the gap into years, months and days, weeks and working days.

Reviewed by ToolNook editorial team Updated Sources

Total days

–

–

Years, months, days

–

Weeks and days

–

Working days (Mon–Fri)

–

Hours

–

Embed this calculator on your site

What is a date difference calculator?

A date difference calculator tells you how much time separates two dates. It is useful for project timelines, notice periods, contract terms, visa stays, pregnancy and baby milestones, loan periods, and simply answering “how long ago was that?”. Counting on a calendar is slow and easy to get wrong when the range crosses months of different lengths or a leap year; the calculator does it instantly and precisely.

Alongside the total number of days, it shows the same span as calendar years, months and days, as weeks plus leftover days, as hours, and as working days from Monday to Friday.

How to use it

  1. Choose the start date and the end date.
  2. Tick include the end date if both the first and last day should count, for example when counting days of leave or the length of an event.
  3. Read the total days and the breakdowns. If the end date is earlier than the start, the calculator shows the gap between them.

How the counting works

By default the calculator counts the number of midnights between the two dates, which is how durations are normally measured: from Monday to Tuesday is one day. Including the end date adds one day, which is how people usually count attendance, hotel nights plus checkout days, or annual leave.

Working days count every Monday to Friday in the range. Public holidays differ between countries and regions, so they are not removed automatically; subtract them yourself if they apply.

Examples

  • 1 January to 31 December 2026 is 364 days (52 weeks), or 365 days when you include the end date.
  • The whole of 2026 contains 261 working days from Monday to Friday.
  • 31 January to 1 March 2000 (a leap year) is 30 days, or 1 month and 1 day.

More worked examples

Leap year: 1 Jan 2024 to 1 Jan 2025 is 366 days because 2024 had 29 February.

Notice period: 6 Oct 2026 to 3 Nov 2026 is 28 days, or exactly 4 weeks.

Common mistakes to avoid

  • Forgetting to include the end date. For leave or event days, tick “include the end date”.
  • Assuming every month has 30 days. Months vary from 28 to 31 days, which matters for contracts.
  • Counting public holidays as working days. Holidays differ by country, so subtract them yourself. To count down to a single date, use the days until calculator.

Sources and methodology

The calculations on this page follow these published standards and references. The code is covered by automated tests against known values.

Frequently asked questions

Does the calculator handle leap years?

Yes. It uses the real calendar, so 29 February is counted in leap years such as 2024 and 2028, and skipped in 2100, which is not a leap year.

Are public holidays excluded from working days?

No. Holidays vary by country and region, so only weekends are excluded. Subtract any public holidays that fall in your range.

Should I include the end date?

Include it when both days count in full, such as days of leave or an event that runs from the first to the last date. Leave it off to measure elapsed time.

Why is a month not always 30 days?

Calendar months have 28 to 31 days. The years-months-days figure uses real calendar months, while the total days figure is the exact count.