Date Difference Calculator
Calculate the gap between two dates in years/months/days, total days, weeks — and weekdays only.
Quick answer: Date Difference Calculator: calculate the gap between two dates in years/months/days, total days, weeks — and weekdays only. Runs entirely in your browser, free, no signup.
Last updated
Good to know
The gap between two dates has more than one right answer, which is why this tool reports several at once. The calendar breakdown (years, months, days) is what you'd say out loud — "2 years and 3 months" — while the total-days and total-weeks figures are what you need for interest accrual, subscription billing, or counting how long a project actually ran.
The month-and-day breakdown follows the same borrowing convention as Excel's DATEDIF: when the end day is earlier in the month than the start day, it borrows days from the previous month, then borrows months from the year. That is why a span can read as "1 month, 30 days" in one case and "2 months" in another that looks similar — month lengths differ, and the arithmetic reflects that rather than smoothing it over.
The weekdays-only toggle counts Monday–Friday and ignores public holidays, since holidays vary by country. If you need holidays excluded for a specific nation — for an SLA or a statutory deadline — use the working days calculator, which layers on holiday calendars for 20 countries.
End-before-start ranges work and simply report a signed result, and because the tool counts whole days rather than hours, daylight-saving transitions don't distort the answer. For someone's exact age with a next-birthday countdown, the age calculator is the specialized version.
Frequently asked questions
- How is 'weekdays only' counted?
- We iterate every day in the range and count those that aren't Saturday or Sunday. Public holidays aren't subtracted because they vary by country.
- Does it handle negative ranges (end before start)?
- Yes — the gap is reported with a sign and the totals are the absolute number of days.
- Are leap years and DST changes handled?
- Leap years are handled by date arithmetic. DST is irrelevant for date-only calculations because we count days, not hours.
- Are my dates uploaded?
- No — every calculation runs in your browser.
- Why is the year/month/day breakdown sometimes counter-intuitive?
- Calendar arithmetic is messy because months have different lengths. We follow the same convention as Excel's DATEDIF — borrow days from the previous month if needed, then borrow months from the previous year.