date.toString()

Convert a Date to a String.

Signature

toString() => String

Description

Converts the calling Date to an ISO 8601 String.

Parameters

None

Return value

Type Description

String

String representation of the calling Date.

Examples

let d = Date("2099-10-20")
d.toString()
"2099-10-20"
\