toISOString

external fun toISOString(): String(source)

Returns a date as a string value in ISO format.

MDN Reference