title: days between two dates compare -> easier way?
body: <p>hi i'm asking myself if there is an easier way to get the number of days between two dates.</p>
  
  <p>I want only the days, without looking at the hours or minutes.</p>
  
  <p>Therefore if today is monday, and the date wich i want to compare is on wednesday, the days between are 2 (the time does not matter)</p>
  
  <p>Therefore i use this code:</p>
  
  <pre><code>        Calendar c = Calendar.getInstance();
          // Only the day:
          c.set(Calendar.HOUR, 0);
          c.set(Calendar.MINUTE, 0);
          c.set(Calendar.SECOND, 0);
          c.set(Calendar.MILLISECOND, 0);
  
          Calendar to = Calendar.getInstance();
          to.setTime(date);
          to.set(Calendar.HOUR, 0);
          to.set(Calendar.MINUTE, 0);
          to.set(Calendar.SECOND, 0);
          to.set(Calendar.MILLISECOND, 0);
          date = to.getTime();
  
          long millsPerDay = 1000 * 60 * 60 * 24;
  
          long dayDiff = ( date.getTime() - dateToday.getTime() ) / millsPerDay;
  </code></pre>
  
  <p>after this code i have the days in a long called dayDiff.
  but is it really necessarily to make a calendar of the date, set the time to 00:00:00:00 and save <code>to.getTime()</code> in <code>date</code>?</p>
  
  <p><strong>Edit: After using joda-time</strong>:
  Is it also possible with joda-time to get information about the days, like:
  difference==1 ==> Tomorrow, or difference == -1 ==> yesterday 
  or do I have to do that manually?</p>