Calendar cal = Calendar.getInstance(); int minDay = cal.getActualMinimum(Calendar.DAY_OF_MONTH);
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); Calendar cal = Calendar.getInstance(); cal.setTime(dateFormat.parse(dateString)); int minDay = cal.getActualMinimum(Calendar.DAY_OF_MONTH);This will return the minimum day of the month for the specified date. The getActualMinimum method is part of the java.util.Calendar package library.