Date Difference Calculator
The exact number of days, weeks, months and years between any two dates.
Inputs
Result
Difference
1,005 days
2y 9m 1d
Next useful calculators
Visual breakdown
Days
1,005
Weeks
143.6
Months
33
Years
2.75
2024-01-012026-10-02
1,005 days elapsed 1,005
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 iframeAdd 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.