title: How to check in node.js if two dates are consecutive?
body: <p>I want to check if two given dates are consecutive, like the following:</p>
  
  <p>last_event_dt = 8/1/2013
  event_dt = 8/2/2013</p>
  
  <p>Condition would be TRUE</p>
  
  <p>last_event_dt = 8/1/2013
  event_dt = 8/3/2013</p>
  
  <p>condition would be FALSE</p>
  
  <p>If found an answer here on stackoverflow for javascript with getDate() but that isn't recognized in node.js</p>
  
  <p>The following code doesn't work:</p>
  
  <pre><code>if (event_dt - last_event_dt === 1)
  </code></pre>
  
  <p>Thanks in advance for your help!</p>