Here you can find the source of getActualMaximumDayOfMonth(final Date date)
Parameter | Description |
---|---|
date | a parameter |
public static int getActualMaximumDayOfMonth(final Date date)
//package com.java2s; //License from project: LGPL import java.util.*; public class Main { /**// ww w. j av a2 s . com * Return maximun number of days in month. * * @param date * @return */ public static int getActualMaximumDayOfMonth(final Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); return calendar.getActualMaximum(Calendar.DAY_OF_MONTH); } }