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

  1. Pick a start date.
  2. Pick an end date.
  3. Read the years/months/days breakdown and totals.
  4. 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.