title: TypeScript: Get difference between two dates in days
body: <p>I need to get the difference between two dates in days.</p>
  
  <p>Up to now, I've been able to get the difference between two dates, but not in days:</p>
  
  <pre><code>date1.getTime() - date2.getTime();
  </code></pre>
  
  <p>Any ideas?</p>