Answers for "get current date in ISO string"

1

date().toisostring().slice(0 10) giving wrong result

//Add Z in the end for getting the correct value with local timezone
var a = new Date("June 08, 2018 Z");
var res = a.toISOString().slice(0, 10);
console.log(res);
Posted by: Guest on August-17-2020
5

get iso date javascript

var isoDate = new Date().toISOString()
Posted by: Guest on June-05-2020

Code answers related to "get current date in ISO string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language