Skip to content
Free online tool

Date difference calculator

Calculate the time between two dates in years, months and days, plus total days, weeks, weekdays and hours. Choose whether to count the end date and see exactly which counting rule is used.

How to calculate days between dates

  1. Pick a start date and an end date.
  2. Tick Include the end date if both the first and last day should be counted.
  3. Click Calculate difference.
  4. Read the result in years, months and days, plus total days, weeks, weekdays and hours.

Inclusive vs exclusive counting

By default the calculator counts from the start date up to, but not including, the end date. From 1 March to 2 March is 1 day, the same way you count nights in a hotel. When you include the end date, both days count, so 1 March to 2 March is 2 days. Inclusive counting suits leave requests, rentals, events and deadlines where the last day matters. The tool explains which rule was used with every result.

Years and months are calculated with real calendar months, not averages. When a start date falls on a day that doesn’t exist in a later month, like 31 January, the month is counted to the last day of the shorter month. Total days include leap days. Weekdays count Monday to Friday and don’t take public holidays into account, as these differ by country.

Useful for

Examples

Differences between common pairs of dates
From – toDifferenceDays (exclusive)Days (inclusive)
1 Jan 2026 – 1 Jan 20271 year365366
15 Jan 2026 – 15 Jul 20266 months181182
31 Jan 2026 – 28 Feb 20261 month2829
1 Mar 2026 – 2 Mar 20261 day12

The third row shows the month-end rule: because February has no 31st, 31 January to 28 February counts as one full month.

Counting working days

Weekdays are Monday to Friday. From 1 January 2026 up to, but not including, 1 January 2027 there are 261 weekdays. Public holidays aren’t removed automatically because they differ by country and region, so subtract the ones that apply to you.

Date difference FAQ

Can the end date be before the start date?

No. You’ll be asked to swap them, and the Swap button does it for you.

Are public holidays excluded from weekdays?

No. Holidays vary by country and region, so subtract them yourself if needed.

How far apart can the dates be?

Any valid dates work. Weekday counts are shown for ranges up to about 100 years.

How many days are there in a year?

A common year has 365 days and a leap year has 366. Leap years are divisible by 4, except century years, which must also be divisible by 400: 2000 was a leap year, 2100 will not be.

How do I count days between dates in Excel?

Subtract the earlier date from the later one, for example =B1-A1. For working days use =NETWORKDAYS(A1, B1), which counts both the start and end dates and can also exclude a list of holidays.

Last updated: 8 November 2026.

Need another tool?

Browse all 50 free tools for PDFs, images, text, SEO, calculations and development.

Explore All Tools