Convert seconds to HH-MM-SS with JavaScript?
How can I convert seconds to an HH-MM-SS string using JavaScript? 32 Answers 32 You can manage to do this without any external JavaScript library with the help of JavaScript Date method like following: var date = new Date(null); date.setSeconds(SECONDS); // specify value for SECONDS here var result = date.toISOString().substr(11, 8); Or, as per @Frank’s … Read more