Here you can find the source of isCurMonth(String month)
public static Boolean isCurMonth(String month)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static Boolean isCurMonth(String month) { SimpleDateFormat daytime = new SimpleDateFormat("yyyyMM"); Calendar calendar = Calendar.getInstance(); String curMonth = daytime.format(calendar.getTime()); return month.equals(curMonth); }//from w w w . java 2s.c o m }