Days between dates
Find out just how far apart two dates are.
- 1Add input
- 2Adjust settings
- 3Get your result
Tool input and files are processed in this browser without being uploaded.
Before you start
Compare calendar dates using UTC day arithmetic, without allowing timezone offsets to create 23- or 25-hour day errors. Choose whether to include both endpoints.
How to use this tool
- Enter the date (yyyy-mm-dd) for days between dates. Fill in the second input as well.
- Check your input, then select “Calculate days”.
- Review the Duration result, then use the available copy or download controls.
Supported inputs and limits
Pasted text is limited to 1 MiB; review the result before using it.
Worked example
Example input
2024-02-28 2024-03-01
Example options
{}Example output
2
When something does not work
Check the input unit, calendar date and IANA time zone. A skipped daylight-saving time has no matching instant; a repeated time requires an explicit earlier/later choice.
Frequently asked questions
Are my files uploaded?
No. Files and tool input are processed in your browser. Moving around the site can keep a temporary workspace in the same tab. Refreshing or closing the tab clears it, so download results you want to keep.
What should I check in this result?
Compare calendar dates using UTC day arithmetic, without allowing timezone offsets to create 23- or 25-hour day errors. Choose whether to include both endpoints.
Documentation & further reading
Related tools
Timestamp converter
Convert integer Unix timestamps and known-offset dates, with UTC and IANA-zone display.
Time zones and UTC formatting
Resolve time zones and daylight-saving ambiguity, or format an instant in UTC.
Add or subtract dates
Add or subtract time from a chosen date.
Stopwatch
Start a stopwatch, pause it, or record a lap.