Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to convert seaconds into hh:mm:ss in javascript

var date = new Date(0);
date.setSeconds(45); // specify value for SECONDS here
var timeString = date.toISOString().substr(11, 8);
console.log(timeString)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #seaconds #javascript
ADD COMMENT
Topic
Name
7+6 =