Here you can find the source of getMonth(Date date)
public static String getMonth(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getMonth(Date date) { return new SimpleDateFormat("MM").format(date); }/*from w ww.j a va2 s. com*/ }