Date Difference Calculator
Pick two dates and instantly see the gap between them in days, weeks, months and years.
Difference
—
What does this tool measure?
The date difference calculator counts the exact span between any two calendar dates and expresses it four ways: total days, weeks plus leftover days, a calendar-aware "years, months, days" breakdown, and the number of full months. Counting days by hand across month boundaries and leap years is error-prone — February has 28 days except when it has 29, and seven months have 31 — so letting the calendar arithmetic run on real dates avoids off-by-one mistakes.
How to use it
Choose two dates. The gap updates immediately, and the order does not matter — swapping the dates gives the same positive result. The total-days figure counts the number of midnights between the dates: from 1 January to 2 January is 1 day. If you need an inclusive count (both endpoint days counted, common for hotel stays billed per day or leave applications), add 1 to the result.
How the calculation works
weeks = total days ÷ 7 (remainder = leftover days)
years/months/days = calendar subtraction with borrowing
The years/months/days breakdown subtracts column by column: days first (borrowing the true length of the previous month when needed), then months (borrowing 12 from the years). That is why the answer matches how people naturally describe durations — "2 years, 3 months and 12 days" — rather than a crude days-÷-30 approximation.
Worked example
How long is it from 1 January 2026 to 19 July 2026? The tool reports 199 days, which is 28 weeks and 3 days, or 6 months and 18 days. A second example across a leap year: 28 February 2020 to 1 March 2020 is 2 days, not 1 — because 2020 had a 29 February in between.
When is this useful?
Counting days until an exam, a wedding, a visa expiry or a project deadline; working out notice periods and contract durations; calculating interest days for a loan settlement; checking the length of a school term; or verifying service length for a job certificate. If one of your two dates is a birth date and the other is today, the age calculator gives you the same answer with a birthday countdown included.
Frequently asked questions
Are both end dates counted?
The result counts the nights between the dates (exclusive of the second date). For an inclusive count — common for per-day billing or leave — add 1 day to the total.
How are leap years handled?
Automatically. The tool subtracts real calendar dates, so 29 February is counted whenever the span crosses one.
Why is the months figure different from days ÷ 30?
Months have 28–31 days, so dividing by 30 drifts. The tool walks the actual calendar: '1 month' means the same day-of-month one month later, which is how contracts and rent periods are usually interpreted.
Can I calculate working days (excluding weekends)?
Not in this version — it measures calendar days. As a quick estimate, multiply the weeks figure by 5 and add the leftover weekdays.
Does it work for dates far in the past or future?
Yes — any dates your browser's date picker accepts, covering well beyond a human lifetime in both directions.