Java Calendar Set Last Day Of Month. Use the getactualmaximum () method to get the last day of the month. You can set the calendar to the first of next month and then subtract a day.
These overloaded methods sets the value of calendar fields. This method is overloaded in the following ways.