title: Get hours difference between two dates in Moment Js
body: <p>I'm able to get the difference between two dates using MomentJs as follows:</p>
  
  <pre><code>moment(end.diff(startTime)).format("m[m] s[s]")
  </code></pre>
  
  <p>However, I also want to display the hour when applicable (only when >= 60 minutes have passed).</p>
  
  <p>However, when I try to retrieve the duration hours using the following:</p>
  
  <pre><code>var duration = moment.duration(end.diff(startTime));
  var hours = duration.hours();
  </code></pre>
  
  <p>it is returning the current hour and not the number of hours between the two dates. </p>
  
  <p>How do I get the difference in hours between two Moments? </p>