title: Add leading zeroes to a moment.js time
body: <p>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?</p>
  
  <p>So for 9 days, 1 hour, 12 minutes and 23 seconds</p>
  
  <pre><code>09:01:12:23
  </code></pre>
  
  <p>or for 1 minute</p>
  
  <pre><code>00:00:01:00
  </code></pre>
  
  <p>Thanks anyone that can help</p>
  
  <hr>
  
  <p>I'm calculating the time between two things in a database, and then sending it to moment.js in seconds.</p>
  
  <p><code>duration.html(difference.add(1, "seconds").format("d:hh:mm:ss"));</code></p>
  
  <p>Essentially I'd like to enforce that even when days are 0 they be displayed, along with the leading zero for single digit numbers.</p>