Answers for "js convert timestamp to iso date"

2

iso string to timestamp javascript

// convert ISO string to JavaScript Date object
let date = new Date("2021-06-02T14:13:54.470Z");

// convert Date object UNIX timestamp
Math.floor(date / 1000) // 1622643234
Posted by: Guest on June-02-2021
0

iso to date javascript

date = new Date('2013-03-10T02:00:00Z');
date.getFullYear()+'-' + (date.getMonth()+1) + '-'+date.getDate();//prints expected format.
Posted by: Guest on June-30-2020

Code answers related to "js convert timestamp to iso date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language