Date Difference Calculator
Find the exact time between two dates, in years, months and days, plus totals in weeks, days, hours and minutes. Optionally count both endpoints. Calculates in your browser.
Difference
-
How it's counted
The headline figure is the calendar breakdown (full years, then the leftover months, then the leftover days) using each month's real length, so “one month” correctly steps from the 15th to the 15th regardless of whether the month had 28 or 31 days.
total days = (end − start) ÷ one day
Tick “include the end date” to count both endpoints (handy for trip lengths or booking nights vs. days). All dates are handled in UTC so daylight-saving never adds or drops a day.
What this does
A date difference calculator finds the exact span between two dates, broken into years, months, and days, with totals in weeks, days, hours, and minutes.
How to use it
- Pick a start date.
- Pick an end date.
- Read the years/months/days breakdown and totals.
- Tick “include the end date” to count both endpoints.
How it works
It counts whole years first, then whole months, then the leftover days, using each month’s real length, so the 15th to the 15th is one month whether that month had 28 or 31 days.
duration = end date − start date
Understanding your result
The span is counted as whole years, then whole months, then leftover days using each months real length, which is why two gaps with the same total days can show different month figures. The calculator measures the gap between the two dates, so if your purpose counts both ends (notice periods, rentals, hire days) add one to the day total before you rely on it.
Example
From 1 January 2020 to 1 March 2020 is 2 months, or 60 days, 2020 was a leap year, so February added 29 days.
Sources & methodology
Last updated .
Frequently asked questions
How is the years/months/days breakdown counted?
It counts whole years first, then whole months, then leftover days, using each month’s real length, so the 15th to the 15th is always one month whether the month had 28 or 31 days.
What does “include the end date” do?
It adds one day so both the start and end dates are counted. This is the difference between counting nights and counting days for a trip, for example.
Is my data stored?
No. Everything is calculated locally in your browser.
Related tools
Add or Subtract Days Calculator
Add or subtract days or weeks from any date and get the resulting date with its day of the week. Calculates in your browser.
Business Days Calculator
Count working days (Mon–Fri) between two dates, or add a number of business days to a date, with custom holidays skipped. Calculates in your browser.
Age Calculator
Work out exact age in years, months and days from a date of birth, plus totals in months, weeks, days and hours, and a countdown to the next birthday. Calculates in your browser.
Countdown Timer
A live countdown to any date and time, ticking down in days, hours, minutes and seconds against your device clock. Runs entirely in your browser, even offline.