Date Difference Calculator

Find the number of days, weeks and months between any two dates.

Counting the gap between two dates

The gap between two dates can be expressed two ways, and they answer different questions. Total days is unambiguous: a straight count, useful for interest, notice periods and deadlines. Years, months and days is more readable but depends on a convention, because months vary in length. Counting from 31 January to 28 February can reasonably be called one month or twenty-eight days, and different tools resolve that differently.

The other decision is inclusivity. An exclusive count gives the days between the dates; an inclusive count includes both endpoints and is one larger. This sounds pedantic until it decides whether a contractual notice period, a hotel stay or a hospital admission is counted correctly. Legal and billing contexts often specify which applies, and when they do not, the assumption is worth stating explicitly. If the span crosses a daylight-saving transition, note that one day in the period is 23 or 25 hours long, which matters when the answer is needed in hours rather than days.

Worked example

From 1 January 2026 to 5 November 2026 there are 308 days, counting the start date but not the end date. If you need to include both days, for example to count the days of a hotel booking or a notice period that "includes" the last day, add one to get 309.

For working days, weekends make a big difference. November 2026 runs from Sunday 1 November to Monday 30 November; between Monday 2 November and Monday 30 November inclusive there are 21 weekdays, before you remove any public holidays in your state.

Common mistakes to avoid

  • Not deciding upfront whether to count the end date. Contracts, visas and leave policies each have their own rule.
  • Treating months as equal lengths. "3 months" from 30 November is not the same number of days as 3 months from 1 June.
  • Forgetting public holidays when counting business days for deadlines.

Last reviewed: 5 November 2026 by the YogiCalc team ยท How we calculate and verify ยท Spotted an error? Tell us

Frequently asked questions

Should I count both the start and end date?

It depends on the purpose. An exclusive count gives the days between; an inclusive count includes both endpoints and is one greater. Contracts and billing rules usually specify which, and the difference genuinely matters for notice periods.

Why do months and days give a different answer than total days?

Because months vary in length, so a months-and-days breakdown depends on a convention for partial months. Total days is a plain count with no convention involved, which is why it is preferred where precision matters.

Does daylight saving affect the calculation?

Not for whole days, but it does when the answer is needed in hours. One day in the period will be 23 or 25 hours where a transition occurs, so an hour-level calculation across that boundary needs care.

How do I count only working days?

Subtract weekends and any applicable public holidays from the total. Holidays vary by country and often by state or region, so a working-day count is only as accurate as the holiday list applied to it.

How many days are left in 2026 after 5 November?

From 5 November 2026 to 31 December 2026 there are 56 days, not counting 5 November itself.

How do I count notice period days?

Check your employment contract or policy. Many count calendar days from the day after you resign, and some include the last working day, so the count can differ by one.