Find the difference between two dates in years, months and days, and the total days.
Days Between Dates
Count the number of days between two dates.
- 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 number of days between them; order does not matter.
Questions about Days Between Dates
Does this use my computer’s time zone or the current time?
No. It works on the plain calendar date you type, in UTC terms, so it gives the same answer on every device. There is no hidden “now”, and nothing is uploaded.
Is anything sent anywhere?
No. The calculation runs entirely in your browser; your dates never leave the page.
Does the Days Between Dates work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Days Between Dates keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Days Between Dates uploaded or stored?
No. The Days Between Dates 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 Days Between Dates on a phone or tablet?
Yes. The page is responsive, so the Days Between Dates 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.
Count the number of complete months between two dates.
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).