Skip to content

Main content

Itinerary Local Date Change Tool

Compare written departure and arrival local dates without interpreting their time zones or treating the difference as elapsed travel duration.

Loading tool…

Description

Parse arrivalLocalDate and departureLocalDate as real date labels and subtract their UTC-midnight representations for calendarDateChange.

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 arrivalLocalDate and departureLocalDate as real date labels and subtract their UTC-midnight representations for calendarDateChange.

When to use this tool

Use Itinerary Local Date Change 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 departureLocalDate, arrivalLocalDate. 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 calendarDateChange. Use the output convention below.

Parse arrivalLocalDate and departureLocalDate as real date labels and subtract their UTC-midnight representations for calendarDateChange.1

Input fieldMeaning and unitsAccepted input
departureLocalDateDeparture Local DateRequired. Text; maximum UTF-16 length 8192.
arrivalLocalDateArrival Local DateRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
calendarDateChangeCalendar Date ChangeRequired. Safe integer.
json
{
  "input": {
    "departureLocalDate": "2026-11-01",
    "arrivalLocalDate": "2026-11-02"
  },
  "output": {
    "calendarDateChange": 1
  }
}

Limitations and assumptions

  • The signed date-label difference is not flight duration or elapsed time across timezones or the international date line.
  • 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/itinerary-local-date-change — tool.io

Similar or alternative tools

  • Museum Ticket Validity Window

    Parse ordered validFromDate and validThroughDate and the visitDate as real Gregorian date strings.

  • Visitor Day Over Night Label

    Parse real YYYY-MM-DD arrival and departure dates at UTC midnight, require departure no earlier, and divide their difference by 86400000 for nightCount.