title: How to get number of days between two calendar instance?
body: <p>I want to find the difference between two <code>Calendar</code> objects in number of days if there is date change like If clock ticked from 23:59-0:00 there should be a day difference.</p>
  
  <p>i wrote this </p>
  
  <pre><code>public static int daysBetween(Calendar startDate, Calendar endDate) {  
      return Math.abs(startDate.get(Calendar.DAY_OF_MONTH)-endDate.get(Calendar.DAY_OF_MONTH));  
  } 
  </code></pre>
  
  <p>but its not working as it only gives difference between days if there is month difference its worthless.</p>