parseUTCDate

external fun parseUTCDate(str: String): Date

Parse date string of one of the following date formats:

  • ISO 8601 "YYYY-MM-DD"

  • Extended ISO 8601 with a signed year, e.g. "+012026-MM-DD" or "-0001-MM-DD"

Uses UTC date components to allow handling date instances independently of the system time-zone.

A date that does not exist, such as "2026-02-30", is not parsed, as in parseDate.