Advertisement
Namecheap VPS hosting

Date difference calculator

Count the time between two dates in years, months and days, plus total days, weeks, weekdays and hours. Use the second calculator to add or subtract days, weeks, months or years from any date, for example to find a deadline 90 days from today.

– Time between the dates
0Total days
0Weeks
0Weekdays (Mon to Fri)
0Hours

Add or subtract days

Advertisement
Namecheap VPS hosting

How to use the date difference calculator

  1. Pick a start date and an end date. The start date is set to today.
  2. Tick Include the end date if both the first and last day should count, as for a hotel stay or a leave period.
  3. Read the difference in years, months and days, and the totals underneath.
  4. To find a future or past date, use Add or subtract days: pick a date, a number and a unit.

How it works

Total days is the number of midnights between the two dates. For example, 1 March to 2 March is 1 day. Ticking Include the end date adds one day, so 1 March to 2 March counts as 2 days.

Years, months and days are counted on the calendar: full years first, then full months, then the days left over, borrowing the length of the previous month when needed.

Weekdays counts Mondays to Fridays in the range. Public holidays are not removed, because they differ by state and by employer.

Adding months keeps the same day of the month where possible. If that day does not exist (for example, adding one month to 31 January), the result moves to the last day of the month, 28 or 29 February.

Example

From 1 January 2026 to 31 December 2026:

  • Difference: 11 months, 30 days (364 days), or 1 year (365 days) when the end date is included
  • Weekdays (end date included): 261

90 days after 16 October 2026 is Thursday, 14 January 2027.

Frequently asked questions

How do I count the days between two dates?

Subtract the earlier date from the later one. This calculator does it for you and also shows weeks, weekdays and hours. Tick Include the end date if you want both the first and last day counted.

Does it count working days?

It counts weekdays (Monday to Friday). Public holidays vary by state and organisation, so subtract those yourself.

Are leap years handled?

Yes. The calculator uses the real calendar, so 29 February is counted in leap years.

How do I find the date 100 days from today?

In Add or subtract days, keep today's date, choose Add, type 100 and choose Days.

What does 'include the end date' change?

It adds one day to the count. Use it when both ends count, such as a 1 to 5 March holiday, which is 5 days, not 4.

Last updated: 25 October 2026