About the Date Difference Calculator
How long until a deadline, how many days since an event, how many working days in a project? Counting days on a calendar by hand is slow and it is easy to be off by one, especially across months and leap years.
This date difference calculator finds the exact time between two dates. It shows the gap in years, months and days, then the total days, weeks, weekdays, weekend days and hours. Choose whether to count the end date too, which matters for things like hotel nights versus days of a holiday.
How to use the Date Difference Calculator
- Pick the start date and the end date.
- Choose whether to include the end date in the count. The standard method doesn’t.
- Read the difference in years, months and days.
- Check the totals for days, weeks, weekdays and hours underneath.
How the difference is counted
- Total days = end date − start date (+ 1 if the end date is included)
- Years, months, days = whole calendar units from start to end
- Weeks = total days ÷ 7, with a remainder in days
- Weekdays = days that fall Monday to Friday
If the end date is before the start date, the dates are swapped so the answer is always positive. Public holidays aren’t excluded from the weekday count.
Date difference examples
From January 15, 2024 to March 20, 2025 is 1 year, 2 months and 5 days. That is 430 days in total, or 61 weeks and 3 days. Of those days, 308 are weekdays and 122 are weekend days.
From January 1 to January 31, 2025 is 30 days. If you include both days, it is 31 days, with 23 of them weekdays.
Good to know
- Leap years add an extra day in February, and this calculator accounts for them.
- Counting the end date adds one day. Use it when both the first and last day count, such as days of leave taken.
- Weekday totals ignore public holidays, so subtract those yourself for working days.
- Months have different lengths, so a month and a day isn’t always 31 days. The calendar-month figure follows the dates themselves.
Frequently asked questions
How do I calculate the number of days between two dates?
Subtract the earlier date from the later one. Doing it by hand means adding the days left in the first month, the days in the months between, and the days into the last month. This calculator does it instantly.
Should I include the end date?
It depends on the question. For an elapsed time, such as how long since an event, don’t include it. For a count of calendar days involved, such as days on holiday, include it.
How do I count working days between two dates?
Use the Weekdays figure, which counts Monday to Friday. Then subtract any public holidays that fall on those days.
Does the calculator handle leap years?
Yes. February 29 is counted in leap years like 2024 and 2028.
Can the end date be before the start date?
Yes. The calculator swaps them and tells you, so you always get a positive result.