You can write a method Date withoutTime(Date) that returns a copy of the date in which all time fields (hour, minute, second, milli) are set to zero. Then you can compare these.
Or you can switch to Joda Time if possible. That library already has the data type DateMidnight, which is what you are looking for.