title: How to check if two dates not on the same calendar day
body: <p>How to check if two dates not on the same day. I came up with this solution but maybe there is a better way to do this:</p>
  
  <pre><code> var actualDate = new Date();
   var isNotToday = dateToCheck.getDay() !== actualDate.getDay() || dateToCheck &lt; actualDate - 24 * 60 * 60 * 1000;
  </code></pre>