Days between two dates

Whole days, using local midnight. Does not skip weekends or holidays.

How to use the Days between two dates

What does the Days between two dates do?

Count whole calendar days between two dates; It applies this page-specific rule: both dates are read as local midnight.

Which inputs does this tool use?

To produce the requested tool result from the supplied values, enter From, To; keep every value in the same example; the page then updates the result from the current values; Start with a familiar case covered by this rule - This is a calendar gap, not working days, not “notice period”, not business days in any country - so the expected result can confirm the settings.

How should the tool result be read?

For a result intended to produce the requested tool result from the supplied values, this is a calendar gap, not working days, not “notice period”, not business days in any country; read to together with the original from rather than as an isolated answer, and confirm that its units or structure match the intended use.

Inclusive?

When the goal is to produce the requested tool result from the supplied values, difference of calendar dates.

Working days?

When using the page to produce the requested tool result from the supplied values, not this page.

Limits and accuracy

When using this tool to produce the requested tool result from the supplied values, crossing a DST change still counts calendar dates, not elapsed hours; check the result in its intended destination before relying on it for important work; keep from until the output has been checked in its intended destination. For a repeatable check when you need to produce the requested tool result from the supplied values, record From alongside the final output and selected options. A known example using from can confirm how the page will produce the requested tool result from the supplied values.

How this works

Both dates are read as local midnight. The difference in milliseconds is divided by 86,400,000 and rounded to a whole day. 1 January to 2 January is 1 day.

This is a calendar gap, not working days, not “notice period”, not business days in any country. Those need holiday calendars this page does not have.

Crossing a DST change still counts calendar dates, not elapsed hours. That is what most “how many days until” questions want.

Frequently asked questions

Inclusive?

Difference of calendar dates. 1 Jan to 2 Jan = 1 day.

Working days?

Not this page.

Time zones?

Both dates use your browser’s local zone at midnight.