title: Date differnce not giving correct in javascript
body: <p>I want to get differnce between 2 date in minuts but i tried from lots of method but not getting real difference </p>
  
  <p>I tried </p>
  
  <pre><code>var punchIn = "Fri Apr 21 2017 10:57:11 GMT+0530 (IST)";
  
  var punchOut ="Fri Apr 21 2017 13:19:50 GMT+0530 (IST)";
  
  
  
   var startDate = new Date(punchIn);
   var endDate = new Date(punchOut);
   var workingHours = (endDate.getTime() - startDate.getTime()) / (1000 * 60 * 60);
  </code></pre>
  
  <blockquote>
    <p>(endDate.getTime() - startDate.getTime()) = 8559000 convert it into
    hours it gives 
    2.3775</p>
  </blockquote>
  
  <p>But it should be 2 hours 22 minutes .. </p>