If I have a two Dates in Java (Android) (Date1 and Date2), how can I know if the Date2 is within the same day of the Date1? (Note: not if the Date2-Date1 < 24 hours). Some examples (suppousing same month and year)
Date1: day=14 hour=00:00 Date2: day=14 hour=00:00 --> Result TRUE
Date1: day=13 hour=23:59 Date2: day=14 hour=00:00 --> Result FALSE
Date1: day=14 hour=05:00 Date2: day=14 hour=00:00 --> Result TRUE
Date1: day=14 hour=00:00 Date2: day=15 hour=00:00 --> Result FALSE
Thanks