Formats a given date in the US Style format "MM/dd/yyyy HH:mm:ss" 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 "MM/dd/yyyy HH:mm:ss"