Date Difference Calculator
Find the days between two dates: years, months and days, total weeks and hours, business days, with an option to include the end date. Free and private.
How to use Date Difference Calculator
- 1Type a start date and an end date as YYYY-MM-DD, use the date pickers, or press Today.
- 2Turn on Include end date if both the first and last day should be counted.
- 3Read the breakdown and totals, or switch mode to calculate an age or add days to a date.
What makes it better
- Years, months and days with a clear month-end rule, plus total days, weeks, hours and minutes
- Business days (Monday to Friday) and weekend days counted separately
- Include-end-date toggle for inclusive counting such as hotel nights versus leave days
- Works for any year from -999999 to 999999, including ranges beyond year 9999
- Age and Add/Subtract modes sit on the same page, and the dates carry over when you switch
About Date Difference Calculator
Enter a start and an end date to get the gap as years, months and days, plus the total days, weeks, hours and minutes and a Monday to Friday business-day count. You can include the end date when both days should be counted, and the dates are swapped for you when the start is later. The same page also works out ages and adds or subtracts days, weeks, months and years from a date.
Common uses
- Count the days left until a deadline, an exam or a visa expiry.
- Work out how many working days a project or notice period spans.
- Check how long ago a contract was signed in months and days.
- Compare two historical dates for a school assignment or a research note.
Example
Input
2024-01-15 to 2024-03-20
Result
From: 2024-01-15 (Monday) To: 2024-03-20 (Wednesday) Difference: 2 months, 5 days Total days: 65 Weeks: 9 weeks, 2 days Hours: 1,560 Minutes: 93,600 Business days (Mon-Fri): 47 Weekend days: 18
Good to know
- Business days skip Saturdays and Sundays only. Public holidays and regional weekends such as Friday and Saturday are not known, so subtract those yourself.
- The months part uses calendar months with end-of-month clamping: 31 January plus one month is the last day of February, so 31 January to 29 February 2024 reads as 1 month, 0 days.
- These are calendar dates with no clock time, so hours and minutes are simply days times 24 and 1,440, with no daylight saving adjustment.
Date Difference Calculator FAQ
How many days are there between two dates?
Enter both dates and read Total days. The count is the end date minus the start date, so 15 January to 20 March 2024 is 65 days, and turning on Include end date makes it 66.
Should the end date be counted in the difference?
It depends on the rule you need. A plain subtraction leaves out the last day, while counting both ends, as for a hotel stay in days or an inclusive leave request, adds one. The toggle shows both without recalculating by hand.
How are business days counted?
Every Monday to Friday between the dates is counted, and weekends are skipped. The first day is counted and the end day is not, unless Include end date is on. Holidays are not removed because they vary by country.
Why does the months and days breakdown sometimes look odd?
Months have different lengths, so the page adds whole calendar months to the start date and then counts the leftover days. If the start day does not exist in the target month, it uses that month's last day, which can give results like 1 month, 29 days.
What if the start date is after the end date?
The page swaps them, computes the positive gap and tells you it did so. The direction is not shown with a minus sign, so check which date comes first when it matters.