Date Difference Calculator
Find the exact difference between two dates — in years, months and days, plus the total days and weeks between them.
The difference
Your dates never leave your browser — nothing is sent or stored.
How to find the difference between two dates
- Enter the start date. Pick the day, month and year the period begins.
- Enter the end date. Pick the day, month and year the period ends — it can be in the past or in the future.
- Tap Calculate the difference. The gap appears in years, months and days — with the total days, weeks and months underneath.
How the calculator works
The calculator uses the real calendar, not an average. It counts full years first, then full months, then the days that are left. A month is never treated as 30 days and a year is never treated as 365 days — the months and leap years in between are counted exactly as the calendar has them.
Total days is simpler: it is the plain number of days between the two dates. That is why the total days and the years-months-days answer always agree with each other.
The order of the dates does not change the answer. Whichever date you put first, the tool measures the same gap — so you can enter them in any order, or use Swap dates to turn them round.
One counting note: the start day itself is not counted. From 1 January to 2 January is 1 day, not 2 — the same way the days from today to tomorrow are 1 day.
Worked example — 14 February 2024 to 30 November 2026
Take 14 February 2024 and 30 November 2026. First count the full years: 14 February 2024 to 14 February 2026 is 2 years. Then the full months: 14 February 2026 to 14 November 2026 is 9 months. Then the days that are left: 14 November to 30 November is 16 days. The answer is 2 years, 9 months and 16 days.
The same gap is 1,020 days in total, which is 145 weeks and 5 days, or 33 months. 14 February 2024 was a Wednesday and 30 November 2026 is a Monday. Type the same dates into the calculator above and you will get the same numbers every time.
Days, weeks and months — the same gap three ways
Years, months and days is the gap people actually use — for an anniversary, an age, or a time since an event. It is the completed gap: whole years and whole months only, with the leftover days on the end.
Total days is the same gap counted a different way. It is useful when you want one plain number — for example, how many days between two dates, or how long until a future date.
Total weeks and total months sit in between. They are the same total, grouped differently: 1,020 days is 145 weeks and 5 days, or 33 months, for the example above. Nothing is rounded or averaged — the weeks and months come from the same two dates.
When a date difference is useful
Any time you need the exact gap between two dates, this is the number to use.
- An anniversary or a birthday — how long since it happened, or how long until the next one.
- An age — the gap from a date of birth to today is your age in years, months and days.
- A deadline or a project — how many days are left, or how long a piece of work took.
- A trip or a wait — the days between booking and travelling, or between two events.
Want your exact age from a date of birth? Try the Age Calculator.
Frequently asked questions
Does the order of the dates matter?
No. The tool measures the gap between the two dates, whichever one you put first. Swap dates turns them round and gives the same answer.
Is the start day counted?
No. From 1 January to 2 January is 1 day, not 2. The start day itself is not counted, and the end day is.
Can I compare a past date with a future date?
Yes. Put any two dates in — past, present or future — and the calculator shows the gap between them, in years, months, days, weeks and total days.
Does the calculator store my dates?
No. Everything runs in your browser — your dates are never sent to a server, saved, or shared.