title: How to compare just the day in a java date?
body: <p>I'm trying to do a simple date comparison between yesterday and today</p>
  
  <pre><code>if (yesterday.before(today)) {
   ...
  }
  </code></pre>
  
  <p>The issue is that with the before method I will eval to true even if it's just a few seconds difference. How might I compare just the day (because I only want to eval this to true if it was the previous day (minutes/seconds should be ignored)</p>
  
  <p>Thank you in advance</p>