Age Difference Calculator
Compare two dates and get the gap in years, months and days, plus the totals in months, weeks and hours. Nothing is uploaded.
What the difference measures
This page measures the gap between two dates rather than one age, which is the sibling question: how far apart are two people, or how long did a project run. The earlier date is identified for you, so the order of the two lines does not matter and the answer is never negative. Whole months are calendar months, not 30-day blocks, which is why 31 January to 1 March reports one month and one day rather than thirty-one days.
How to use it
Age Difference Calculator: paste the two dates, one per line into the box above, and press Run to get the difference below.
Worked example
Input:
1990-05-14
1985-02-28
Output:
Earlier date: 1985-02-28 (Thursday)
Later date: 1990-05-14 (Monday)
Difference: 5 years, 2 months, 16 days
Whole months: 62
Total days: 1,901
Total weeks: 271 and 4 days
Total hours: 45,624
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads two dates, one per line and returns difference; reloading the page discards both.
This page measures the gap between two dates rather than one age, which is the sibling question: how far apart are two people, or how long did a project run. The earlier date is identified for you, so the order of the two lines does not matter and the answer is never negative. Whole months are calendar months, not 30-day blocks, which is why 31 January to 1 March reports one month and one day rather than thirty-one days.
Compare two dates and get the gap in years, months and days, plus the totals in months, weeks and hours. Nothing is uploaded.
How to use it
Age Difference Calculator: paste the two dates, one per line into the box above, and press Run to get the difference below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads two dates, one per line and returns difference; reloading the page discards both.
What to Expect
Best for
- Converting two dates, one per line to difference when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
1990-05-14 1985-02-28
Sample output
Earlier date: 1985-02-28 (Thursday) Later date: 1990-05-14 (Monday) Difference: 5 years, 2 months, 16 days Whole months: 62 Total days: 1,901 Total weeks: 271 and 4 days Total hours: 45,624
Frequently asked questions
How do I use the age difference calculator?
Age Difference Calculator: paste the two dates, one per line into the box above, and press Run to get the difference below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.