// yyyy-mm-dd
new Date().toISOString().slice(0, 10)
let today = new Date()
today.toISOString().split('T')[0]
dformat = [d.getDate(), d.getMonth() + 1, d.getFullYear()].join('/') + ' ' + [d.getHours(),d.getMinutes(),d.getSeconds()].join(':');
let yourDate = new Date()
yourDate.toISOString().split('T')[0]
var today = new Date();
today.toISOString().substring(0, 10);
var d = new Date,
dformat = [(d.getMonth()+1).padLeft(),
d.getDate().padLeft(),
d.getFullYear()].join('/') +' ' +
[d.getHours().padLeft(),
d.getMinutes().padLeft(),
d.getSeconds().padLeft()].join(':');
//=> dformat => '05/17/2012 10:52:21'