So, I have to check if the difference between 2 dates is at least one day. Then the method should return true, otherwise it is false.
The format for dates that I´m using is GregorianCalendar(year, month, day)
.
So I already have a method that uses date1.before(date2)
, but that also checks the time, so ifdate1
is before date2
it returns true, even if they are the same day (but the time is different!).
What I need is a way to check if the difference between the dates is at least 1 day.
Any ideas?