Date.addMonths

void addMonths(uint nMonths)

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.

Parameters

nMonthsnumber of months to move forward