Date Difference Calculator

The exact number of days, weeks, months and years between any two dates.

Inputs

Result

Difference
909 days
2y 5m 27d

Visual breakdown

Days
909
Weeks
129.9
Months
29.9
Years
2.49
2024-01-012026-06-28
909 days elapsed 909

Formula

Days = ⌊(to − from) ÷ 86,400,000 ms⌋. Years/months/days use real calendar arithmetic.

Example

1 Jan 2024 → 14 May 2026 = 864 days (≈ 2.37 years).

Related: Business days · Age · Time duration

Common examples

Days between Jan 1 and Dec 31?
364 days (same year)
Weeks between Jan 1 and Jul 1?
≈ 26 weeks
Months from Mar 15 to Sep 15?
6 months exactly
Days from today to Dec 25?
Counts down to Christmas
Years between 1990 and 2026?
36 years

Embed this calculator

Free · noindex iframe

Add this calculator to your site. Copy the snippet — it works on any page with a simple iframe.

Attribution: “Powered by CalcJoy”.

Frequently asked

Are both endpoints included?

We count the elapsed days between them — neither endpoint counts as a separate day. To include both, add 1.

Does it handle dates in the past?

Yes. Swapping order shows the same difference, marked as reverse.

Are leap years handled?

Yes — calculations use real calendar days, so 29 Feb is counted in leap years.

People also calculate

More time & date