- field
- the field to roll.
- increment
- true to increment the field, false to decrement.
Type Reason Java.Lang.IllegalArgumentException if an invalid field is specified.
Increments or decrements the specified field and wraps the value of the field when it goes beyond the maximum or minimum value for the current date. Other fields will be adjusted as required to maintain a consistent date. For example, March 31 will roll to April 30 when rolling the month field.