I'm currently using moment.js to handle the displaying of time in a node.js application - is there a way I can ALWAYS have the date formatted with leading zeroes, and atleast two characters wide?
So for 9 days, 1 hour, 12 minutes and 23 seconds
09:01:12:23
or for 1 minute
00:00:01:00
Thanks anyone that can help
I'm calculating the time between two things in a database, and then sending it to moment.js in seconds.
duration.html(difference.add(1, "seconds").format("d:hh:mm:ss"));
Essentially I'd like to enforce that even when days are 0 they be displayed, along with the leading zero for single digit numbers.