Tag Archives: java.util.Calendar

Get the Last Day of The Month in Java

Use the getActualMaximum(int field) method of the Calendar class to retrieve the last day of the month. See the below code for usage details. The code retrieves the last date for Feb 2009 as an example. You can modify the … Continue reading

Posted in Java | Tagged , , | 1 Comment