How do you find the number of days in a month in Java?
+5
A:
Set the year and month on a Calendar object and then use getActualMaximum to return the last day:
calendar.getActualMaximum(calendar.DAY_OF_MONTH)
Mark Byers
2010-03-30 12:38:04
Thank you for responding.I accept you solution and that perfectly work
chetan
2010-03-30 13:31:05