What the Date Difference Calculator does
The date difference calculator counts the number of days between two dates and also shows the result in weeks, in years, months and days, in hours and as business days (Monday to Friday). It is the quickest way to answer questions like “How many days until my holiday?” or “How long was the project?”.
You decide whether the end date is included. Leave it unchecked for durations and deadlines — from Monday to Friday is 4 days. Check it when both days count, such as a hotel booking from the 1st to the 5th that you want to count as 5 days, or a leave request.
If the start date is after the end date, the tool simply swaps them, so you always get a positive result. Everything is calculated in your browser.
When to use it
Deadlines and notice periods
Count the days until a contract ends, a payment is due or a notice period expires.
Holidays and events
See how many days and weeks are left until a trip, a wedding or an exam.
Projects and work time
Measure the length of a project or estimate business days for planning.
Pregnancy, training and habits
Track how many days or weeks have passed since a start date.
Tips for the best results
- Business days exclude Saturdays and Sundays only. Public holidays differ by country and region, so subtract them yourself.
- Use “Include end date” when you count calendar days that are both used, for example days of leave.
- The years-months-days result follows the calendar: from 31 January to 28 February is 28 days, but counted as 0 months and 28 days.
- To count back from today, set the end date to today and the start date to the past event.
How the Date Difference Calculator works
Both dates are converted to midnight UTC, and the difference in milliseconds is divided by the length of a day. Using UTC means daylight saving changes cannot add or remove an hour and turn into an extra day.
Business days are counted by stepping through every day of the period and skipping Saturdays and Sundays. Weeks are the total days divided by seven, shown with one decimal place.
The breakdown into years, months and days uses the same calendar method as our age calculator, borrowing days from the previous month when needed.