Description
Parse real YYYY-MM-DD arrival and departure dates at UTC midnight, require departure no earlier, and divide their difference by 86400000 for nightCount.
Travel dates, ticket changes, and service windows combine calendar labels with operational rules. A date calculation can check supplied boundaries, but it does not establish availability, eligibility, or a provider's current policy.
Parse real YYYY-MM-DD arrival and departure dates at UTC midnight, require departure no earlier, and divide their difference by 86400000 for nightCount.
When to use this tool
Use Visitor Day Over Night Label when you need a date comparison or formatted travel record under the supplied rule.
How to use the tool and how it works
- Enter arrivalDate, departureDate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read overnight, nightCount. Inspect overnight before interpreting the associated values.
Parse real YYYY-MM-DD arrival and departure dates at UTC midnight, require departure no earlier, and divide their difference by 86400000 for nightCount. Mark overnight for a positive count.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| arrivalDate | Arrival Date | Required. Text; maximum UTF-16 length 8192. |
| departureDate | Departure Date | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| overnight | Overnight | Required. Boolean. |
| nightCount | Night Count | Required. Safe integer. |
{
"input": {
"arrivalDate": "2026-11-01",
"departureDate": "2026-11-03"
},
"output": {
"overnight": true,
"nightCount": 2
}
} Limitations and assumptions
- This counts calendar nights from named dates rather than elapsed hours, lodging use, or a timezone-aware journey.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Confirm the booking terms, local date convention, and provider's current availability separately.
References
Similar or alternative tools
- Itinerary Local Date Change
Parse arrivalLocalDate and departureLocalDate as real date labels and subtract their UTC-midnight representations for calendarDateChange.
- Hotel Room Night Booking Count
Multiply nonnegative safe-integer roomCount by nightCount for roomNights.