How to format ISO date string in Javascript
Issue #705
Supposed we have date in format ISO8601 and we want to get rid of T and millisecond and timezone Z
1 | const date = new Date() |
We can use toISOString
, then split base on the dot .
then remove character T
1 | date |