title: Compare dates ignoring milliseconds?
body: <p><strong>Is there a way to compare two calendar objects, but ignore milliseconds?</strong></p>
  
  <p>I have written a test case that compared two calendar objects, but there is a problem. Although all of the day, month, minutes and hours match, the milliseconds doesn't matches. I get the expected date before getting the real date:</p>
  
  <pre><code>/**
   * @return
   */
  private Calendar getExpectedOneMonthDateFromCurrentDate() {
      Calendar expectedOneMonth = Calendar.getInstance();
      expectedOneMonth.add(Calendar.MONTH, -1);
      return expectedOneMonth;
  }
  
  assertEquals(getExpectedOneMonthDateFromCurrentDate(),
               DateRange.LAST_ONE_MONTH.getToDate());
  </code></pre>