0 points

format a JavaScript date (2019-02-12)


dashboard

Tue Jul 07 2020 13:23:37 GMT+0000 (UTC)

Posted by @nikhil3790 #javascript

var today = new Date().toISOString().slice(0, 10);
content_copy Copy

https://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date