Calendar.setDay

Sets the day for the selected date.

The new date must be valid. For example, setting 31 for the day when the month is February, fails.

class Calendar
void
setDay
(
int day
)

Parameters

day int

The desired day for the selected date (as a number between 1 and 31).