SyntaxFix
Write A Post
Hire A Developer
Questions
Following method will provide you the no of days in a particular month
public static int getNoOfDaysInAMonth(String date) { Calendar cal = Calendar.getInstance(); cal.setTime(date); return (cal.getActualMaximum(Calendar.DATE)); }