Returns a copy of this date with the specified number of months added.
!(p)
This adds the specified period _in months to the date.
In some cases, adding months can cause the resulting date to become invalid.
If this occurs, then other fields, typically the day-of-month, will be adjusted to ensure
that the result is valid. Typically this will select the last valid day of the month.
!(p)
This instance is immutable and unaffected by this method call.
@param monthsToAdd the months to add, may be negative
@return a date based on this one with the months added, not null
@throws DateTimeException if the result exceeds the supported date range
Returns a copy of this date with the specified number of months added. !(p) This adds the specified period _in months to the date. In some cases, adding months can cause the resulting date to become invalid. If this occurs, then other fields, typically the day-of-month, will be adjusted to ensure that the result is valid. Typically this will select the last valid day of the month. !(p) This instance is immutable and unaffected by this method call.
@param monthsToAdd the months to add, may be negative @return a date based on this one with the months added, not null @throws DateTimeException if the result exceeds the supported date range