Count the number of days between two dates.
Date Difference Calculator
Find the difference between two dates in years, months and days, and the total days.
- Free
- No sign-up
- Runs in your browser
Input
A date written as YYYY-MM-DD, for example 2024-01-31.
A date written as YYYY-MM-DD, for example 2024-01-31.
Fill in First date and Second date to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter two dates as YYYY-MM-DD.
- 2
The result is the breakdown in years, months and days, plus the total days.
Questions about Date Difference Calculator
How are months counted?
By calendar: full years first, then full months, then the leftover days, borrowing the length of the real month when needed. That matches how people say “2 years and 3 months”.
Is anything sent anywhere?
No. The calculation runs entirely in your browser; your dates never leave the page.
Does the Date Difference Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Date Difference Calculator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Date Difference Calculator uploaded or stored?
No. The Date Difference Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the Date Difference Calculator on a phone or tablet?
Yes. The page is responsive, so the Date Difference Calculator works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Find an age in years, months and days from a date of birth to a given date.
Count the business days (Monday–Friday) between two dates, inclusive.
Add a number of days to a date and get the resulting date and weekday.
Subtract a number of days from a date and get the resulting date and weekday.
Find the ISO 8601 week number of a date, and its ISO week-year.
Convert a calendar date to its ISO 8601 week date (YYYY-Www-D).
Find which day of the year a date is (1–366), and how many days remain.