ThemeParks.wiki Parks API - v2.0.0
    Preparing search index...

    Function shiftDateString

    • Step a calendar date string by whole days, independent of the host timezone.

      new Date('2026-08-13T00:00:00') parses in the host's zone, so adding a day and reformatting in the park's zone silently returns the same date on any host east of that park. This anchors at noon UTC instead, which no offset or DST shift can push across a date boundary.

      Parameters

      • dateStr: string

        Date in YYYY-MM-DD format

      • days: number

        Whole days to add; may be negative

      Returns string

      The resulting date in YYYY-MM-DD format