Date Difference
Count whole calendar days between two ISO dates.
About this tool
The result is the number of midnights between the two dates. Order matters: swapping the dates changes the sign.
Business Days is the page that skips weekends. This one does not.
How to use it
- Enter the two dates.
- Count the days.
- A later start date produces a negative count.
Limitations
- The count is calendar days, so Saturday and Sunday are included.
- Time of day is ignored. The dates are whole ISO dates.
How many midnights sit between the dates
The count is the later UTC midnight minus the earlier one
Both fields are calendar dates. Each is placed at UTC midnight, the two instants are subtracted, and the gap is divided by 86400000. The quotient is rounded to a whole day. From 1 January to 3 January the readout is 2. The same date in both fields is 0. Reversing the fields flips the sign, so a start that falls after the end is negative rather than an error. Weekends stay in the total. Nothing here skips Saturday or Sunday, and nothing here knows a public holiday.
People often want a stay that includes both the arrival date and the departure date. That inclusive headcount is this span plus one when the span is positive. A Monday-to-Wednesday trip that should be billed as three dates is 2 on this page. Add one yourself if the contract counts both ends. Do not add one when the question is how many nights, or how many midnights were crossed, because that question is already what the subtraction answers.
Impossible dates never reach the subtraction
29 February is accepted only in a leap year. 31 April and 31 February are rejected before any gap is computed. The check builds a UTC date and asks whether the year, month, and day survived unchanged. A rolled date is not silently moved to 1 March. You get an error instead of a surprise day count.
A timestamp typed into either date field is reduced to the UTC civil date of that millisecond value, then stored as a calendar date. A late evening in a westward zone can therefore belong to the next UTC date. The day count follows those UTC dates, not the wall calendar you saw on a phone. If the two instants matter more than the civil dates, use a duration between date-times. If you only wanted weekdays, this total is the wrong figure because it still contains Saturday and Sunday.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

