Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert unix timestamp to datetime string in js

console.log(new Date(1549312452 * 1000).toISOString().slice(0, 19).replace('T', ' '));
// "2019-02-04 20:34:12"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #unix #timestamp #datetime #string #js
ADD COMMENT
Topic
Name
5+6 =