Here you can find the source of getMonthOfCurrentTime(Date date)
public static Integer getMonthOfCurrentTime(Date date)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Integer getMonthOfCurrentTime(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date);//from w w w . j a v a 2s.co m return calendar.get(Calendar.MONTH) + 1; } }