Function toISODateString

Get the ISO string version of a date in the format YYYY-MM-DD. It doesn't say anything about the timezone.

  • Parameters

    • input: string | number | Date

    Returns string