code: public static long subYears(final Date date1, final Date date2) {
  
      return Math.abs(getYear(date1) - getYear(date2));
    }
docs: Get how many years between two date.
  
  @param date1 date to be tested.
  @param date2 date to be tested.
  @return how many years between two date.