How to get month from a date in java :
DateFormat inputDF = new SimpleDateFormat(\"mm/dd/yy\"); Date date1 = inputDF.parse(\"9/30/11\");
mmis for minutes, use MM while specifying format.
mm
MM
Calendar cal = Calendar.getInstance(); cal.setTime(date1); int month = cal.get(Calendar.MONTH);// returns month value index starts from 0