Here you can find the source of getCurrYearFirst()
public static int getCurrYearFirst()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static int getCurrYearFirst() { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Calendar ca = Calendar.getInstance(); int FirstYear = ca.get(Calendar.YEAR); return FirstYear; }/*w ww .j a v a2 s. co m*/ }