How to know if a Date is within the same day of other date
<p>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 &lt; 24 hours). Some examples (suppousing same month and year)</p>

<pre><code> Date1: day=14 hour=00:00           Date2: day=14 hour=00:00    --&gt; Result TRUE
 Date1: day=13 hour=23:59           Date2: day=14 hour=00:00    --&gt; Result FALSE
 Date1: day=14 hour=05:00           Date2: day=14 hour=00:00    --&gt; Result TRUE
 Date1: day=14 hour=00:00           Date2: day=15 hour=00:00    --&gt; Result FALSE
</code></pre>

<p>Thanks</p>
