Skip to content

Main content

Visitor Day Over Night Label Tool

Distinguish a same-date visit from a stay spanning local calendar nights; both dates must already use one locality's calendar.

Loading tool…

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

  1. Enter arrivalDate, departureDate. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
arrivalDateArrival DateRequired. Text; maximum UTF-16 length 8192.
departureDateDeparture DateRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
overnightOvernightRequired. Boolean.
nightCountNight CountRequired. Safe integer.
json
{
  "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

  1. Calculation and input contract: tourism/visitor-day-over-night-label — tool.io

Similar or alternative tools