Hex Core JS
    Preparing search index...

    Function toTimeZone

    • Attaches a preferred timezone to a given date time object. This is primarily useful for formatting a date into the timezone that the user expects, and various other timezone specific calculations, like dateTrunc.

      Parameters

      • dateTime: DateTime

        The date time object to use

      • timezone: string

        The TZ timezone name

      Returns Dayjs