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
- Enter departureLocalDate, arrivalLocalDate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- 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 field | Meaning and units | Accepted input |
|---|---|---|
| departureLocalDate | Departure Local Date | Required. Text; maximum UTF-16 length 8192. |
| arrivalLocalDate | Arrival Local Date | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| calendarDateChange | Calendar Date Change | Required. Safe integer. |
{
"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
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.