Answers for "js convert seconds to hh mm ss"

1

seconds to hh mm ss javascript

new Date(SECONDS * 1000).toISOString().substr(11, 8)
Posted by: Guest on May-22-2021
0

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)
Posted by: Guest on December-11-2020

Code answers related to "js convert seconds to hh mm ss"

Code answers related to "Javascript"

Browse Popular Code Answers by Language