A calendar date on this device
Count days between two dates
The count is the number of midnights from the first date to the second, in this device's calendar.
A later first date gives a negative count.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Date difference
The sample is fixed. It uses the same rule as the form.
- Start
- 2026-11-01
- End
- 2026-11-07
- Days
- 6
How to use it
- 1Fill in the fields.
- 2Read the result.
- 3Copy the line you need.
Good to know
- Times of day are not accepted. Use dates only.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Times of day are not accepted. Use dates only.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Add days to a date
The day count can be negative, which moves backward.
- Convert a Unix timestamp
Unix time counts seconds from the start of 1970 in UTC. JavaScript often counts milliseconds instead. Mixing the two shifts the date by about thirty years, or by a factor of a thousand.
- Count years, months, and days from a date
The count runs from the date you enter to today on this device.