获取当前年月
Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEAR); int month = now.get((Calendar.MONTH) + 1);