code: public static int getYear(Date date) {
          Calendar c = Calendar.getInstance();
          c.setTime(date);
          return c.get(Calendar.YEAR);
      }
docs: Get the year of the date
  
  @param date date
  @return year of the date