rollMonth()
Adds the specified (signed) amount to the Month
field, without changing larger fields.
Syntax
Calendar rollMonth(Numeric amount)
- amount is the signed amount to add to the
Month
field.
Usage
For example, to add a month call rollMonth(1)
. When rolling on the Month field,
other fields like Day of Month
might conflict and, need to be changed. For
instance, rolling the month on the date 01/31/96 will result in 02/29/96.