title: Moment.js Get difference between two dates in the dd:hh:mm:ss format?
body: <p>I am calculating the time until 11:59PM of the current day.  Here is an example.</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  
      setInterval(function() {
  
          var now = moment();
          var mid = moment();
          mid = mid.endOf('day');
  
          var diffHours = mid.diff(now, 'hours');
          var diffMinutes = mid.diff(now, 'minutes');
          var diffSeconds = mid.diff(now, 'seconds');
  
          console.log(diffHours + "h " + diffMinutes + "m " + diffSeconds + "s");
  
      }, 1000)
  
  &lt;/script&gt;
  </code></pre>
  
  <p>However, I was hoping it would show me a time such as 20h 13m 49s, instead I am getting 20h 1255m 73500s</p>
  
  <p>I understand this is working as intended pretty much, but how can I achieve the format I am seeking?</p>