Function toISOString

Get the ISO string version of a date in the format YYYY-MM-DDTHH:mm:ss.sssZ. The timezone is always UTC, as denoted by the suffix Z.

  • Parameters

    • input: string | number | Date

    Returns string