ToIsodatestring
let isoDate = "2013-03-10T02:00:00Z";
alert(isoDate.split("T")[0]);
Defiant Dragonfly
let isoDate = "2013-03-10T02:00:00Z";
alert(isoDate.split("T")[0]);