Formats a given date in 24-hour time (HH:mm) in the specified time zone

  • Parameters

    • date: Date

      The date to be formatted

    • timeZone: string = ...

      (Optional) The time zone to be used for formatting the date. If not specified, the local time zone is used. Offsets and IANA both supported. Ex: (+08:00, +08, Z, Z+8)

    Returns string

    The formatted date string in the format "HH:mm"