/date/toISO
stdReturns an ISO-compliant date-time string.
Type signature
(x: Date) => string
Examples
toISO(
new Date(
"2019-04-24T13:54:33.232Z",
),
);
// ⇒ "2019-04-24T13:54:33.232Z"
Try in REPL
Questions
- How to convert Date object to ISO-compliant date string?