Here you can find the source of getYear(Date aDate)
public static Integer getYear(Date aDate)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Integer getYear(Date aDate) { Calendar cal = new GregorianCalendar(); cal.setTime(aDate);/*from w ww. j a v a 2s. c o m*/ return new Integer(cal.get(Calendar.YEAR)); } public static int getYear(int rcYear) { return rcYear + 1911; } public static Integer getYear(Integer rcYear) { return new Integer(getYear(rcYear.intValue())); } }