This LocalDate instance is immutable and unaffected by this method call.
The following three lines are identical in effect:
LocalDate added = dt.plusMonths(6); LocalDate added = dt.plus(Period.months(6)); LocalDate added = dt.withFieldAdded(DurationFieldType.months(), 6);@param months the amount of months to add, may be negative @return the new LocalDate plus the increased months
|
|
|
|
|
|
|
|