Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #iso #string #timestamp #javascript
ADD COMMENT
Topic
Name
2+1 =