title: Check if a date is "tomorrow" or "the day after tomorrow"
body: <p>I'm looking for a way to get "<strong>tomorrow</strong>" and "<strong>the day after tomorrow"</strong> returned from a function that receives to dates: </p>
  
  <p>The current date:</p>
  
  <blockquote>
    <p>"2015/04/24 18:15:00"</p>
  </blockquote>
  
  <p>The date in the future:</p>
  
  <blockquote>
    <p>"2015/04/25 02:40:00"</p>
  </blockquote>
  
  <p>The function should return "tomorrow" here. I tried looking up some functions but they all return 0 not 1.</p>
  
  <pre><code>function days_between(date1, date2) {
  
      // The number of milliseconds in one day
      var ONE_DAY = 1000 * 60 * 60 * 24
  
      // Convert both dates to milliseconds
      var date1_ms = date1.getTime()
      var date2_ms = date2.getTime()
  
      // Calculate the difference in milliseconds
      var difference_ms = Math.abs(date1_ms - date2_ms)
  
      // Convert back to days and return
      return Math.round(difference_ms/ONE_DAY)
  
  }
  </code></pre>
  
  <p>Any ideas?</p>