Date Difference Calculator

Days, weeks, months, and years between two dates — with a weekday/weekend breakdown

Total days364
In years/months/days0y 11m 30d
Weeks + remainder52 weeks, 0 days
Weekdays260
Weekend days104

To exclude public holidays as well as weekends, use the Working Days Calculator instead.

Frequently Asked Questions

Does the order I enter the two dates matter?
No — enter them in either order and you'll get the same result; the calculator automatically works out which date comes first.
Why does this show both a total-days figure and a years/months/days breakdown?
They answer slightly different questions. Total days is an exact count. The years/months/days breakdown is calendar-aware (accounting for different month lengths), which is usually more intuitive for describing a long span — "2 years, 3 months" is easier to picture than "823 days," even though both are correct.
Is my data sent anywhere?
No. Everything is calculated locally in your browser.

Calculating the exact gap between two dates — in days, weeks, months, and years, plus a weekday/weekend breakdown — requires more than a simple day-count subtraction once the result needs to be expressed in mixed units (years, months, and days together) rather than a single total-days figure.

Why "total days" and "years, months, days" are different calculations

A pure day-count difference (subtracting one date's serial day number from another's) is straightforward and gives an exact total-days figure. But expressing that same gap as "X years, Y months, Z days" requires calendar-aware logic, since months have varying lengths and years contain leap days — the same total day-count can correspond to slightly different years/months/days breakdowns depending on which specific calendar months the date range actually spans. The weekday/weekend breakdown adds another layer: counting how many of the days in a date range fall on weekdays versus weekend days requires stepping through the actual calendar (checking day-of-week for each date in range), not just dividing total days by 7, since the range's start and end points relative to the week affect the exact weekday/weekend split.

A worked example

Two date ranges with the identical total number of days can have different weekday/weekend splits depending on which days of the week the range actually starts and ends on — a range that happens to start and end on weekends contains a different weekday count than a same-length range starting and ending mid-week, which is exactly why a simple divide-by-seven approximation doesn't give the precise breakdown.

How this connects to your other date calculations

This calculator's underlying date-math logic is shared with the Date Add/Subtract Calculator (projecting forward/backward from one date rather than measuring the gap between two) and the Working Days Calculator, which extends the weekday-counting logic specifically for business/working-day purposes.

Common mistakes

Estimating years and months between two dates via simple division (total days ÷ 365.25 for years, for instance) rather than exact calendar-aware counting produces a figure that's close but not exact — for any use case where the precise years/months/days breakdown matters (calculating exact age, a precise service duration, a specific eligibility period), calendar-aware calculation avoids the small but real error a division-based approximation introduces.

Related Calculators

Circle CalculatorGFR CalculatorSleep CalculatorTire Size CalculatorBill Split CalculatorPercent Error Calculator