How to compare just the day in a java date?
16:54 18 Jun 2011

I'm trying to do a simple date comparison between yesterday and today

if (yesterday.before(today)) {
 ...
}

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)

Thank you in advance

java date