Android examples for java.util:Month
get Current Month in integer
import android.util.Log; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; public class Main{ public static int getCurrentMonth() { return Calendar.getInstance().get(Calendar.MONTH) + 1; }//from w w w. jav a 2s . c o m }