JS ToisSotring
new Date().toISOString().slice(0, 16).replace('T', ' ')
// "2020-11-28 00:40"
Defiant Dragonfly
new Date().toISOString().slice(0, 16).replace('T', ' ')
// "2020-11-28 00:40"
let isoDate = "2013-03-10T02:00:00Z";
alert(isoDate.split("T")[0]);