Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String getMonth(Date date) { SimpleDateFormat df = new SimpleDateFormat("MM", Locale.KOREA); String strMonth = df.format(date); return strMonth; } }