Date.addMonths

Increments a date by some number of months. If the day of the month is greater than 28, this routine may change the day of the month (because the destination month may not have the current day in it). The date must be valid.

class Date
void
addMonths
(
uint nMonths
)

Parameters

nMonths uint

number of months to move forward