How do you find the number of days in a month in Java?
See Question&Answers more detail:osHow do you find the number of days in a month in Java?
See Question&Answers more detail:osSet the year and month on a Calendar object and then use getActualMaximum
to return the last day:
calendar.getActualMaximum(Calendar.DAY_OF_MONTH)