Date Difference Calculator
Find the exact difference between two dates — years, months, days, and total days. Nothing is uploaded.
Exact difference between any two dates
Enter two dates to get the gap broken down into years, months, and days, as well as the raw total number of days. The order of the two dates does not matter — the tool always returns a non-negative breakdown. The month-borrow algorithm handles short months and leap years correctly: when the day component would go negative, it borrows from the preceding month using that month's actual length. Everything runs locally in your browser.
"Total days" is the exact UTC day count between the two dates, useful when you need a precise integer for calculations. The years/months/days breakdown follows calendar conventions — the same way a human would count age or time elapsed.
FAQ
Why does the day count differ from years x 365 + months x 30? Because months have different lengths and some years have 366 days. "Total days" is the authoritative number; the breakdown is a calendar representation of the same interval.
Does it matter which date I enter first? No. The tool sorts the inputs internally and always reports a non-negative result.
How is this different from the Age Calculator? Functionally identical — the Age Calculator assumes the first date is a birth date and labels the result accordingly. This tool is more neutral and defaults both inputs to today.