Counting the time between two dates is trickier than it looks, because months vary in length and leap years add a day. This calculator gives you the exact gap as a total, in weeks, and as a years-months-days breakdown.
How the gap is measured
The total-days figure is the raw count between the two dates. The years/months/days breakdown counts whole years first, then whole months, then leftover days — the same way you'd describe someone's age. The order of the two dates doesn't matter; the calculator uses the absolute difference.
A worked example
From 1 January 2020 to 1 January 2026 is exactly six years — but that's 2,192 days, not 6 × 365 = 2,190, because two leap days (2020 and 2024) fall in between. The calculator counts real calendar days, so the total stays accurate no matter how many February 29ths are in the range.
Common uses
Date differences come up constantly: counting down to a deadline or event, measuring a project's duration, working out someone's age at a past date, or checking how long ago something happened. Payroll, contracts, and warranties often hinge on an exact day count too.
Because the tool uses the absolute difference, you can enter the dates in either order and still get the right gap — handy when you're not certain which one came first.