rollDayOfMonth()

Adds the specified (signed) amount to the Day of Month field, without changing larger fields.

Syntax

Calendar rollDayOfMonth(Numeric amount)
  1. amount is the signed amount to add to the Day of Month field.

Example

To roll the current date up by one day:

rollDayOfMonth(1)