Date.subtractMonths

Moves a date some number of months into the past. If the current day of the month doesn't exist in the destination month, the day of the month may change. The date must be valid.

class Date
void
subtractMonths
(
uint nMonths
)

Parameters

nMonths uint

number of months to move