Here you can find the source of getMonth(Date aDate)
public static Integer getMonth(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 getMonth(Date aDate) { Calendar cal = new GregorianCalendar(); cal.setTime(aDate);/*w ww . java 2s. co m*/ return new Integer(cal.get(Calendar.MONTH) + 1); } }