code: public static int truncatedCompareTo(final java.util.Date date1, final java.util.Date date2, final int field) {
          return truncate(date1, field).compareTo(truncate(date2, field));
      }
docs: Copied from Apache Commons Lang under Apache License v2.
  <br />
  
  Determines how two dates compare up to no more than the specified
  most significant field.
  
  @param date1 the first date, not <code>null</code>
  @param date2 the second date, not <code>null</code>
  @param field the field from <code>Calendar</code>
  @return a negative integer, zero, or a positive integer as the first
  date is less than, equal to, or greater than the second.
  @throws IllegalArgumentException if any argument is <code>null</code>
  @see #truncate(Calendar, int)
  @see #truncatedCompareTo(Date, Date, int)
  @since 3.0