addMonths method

Date addMonths(
  1. int amount
)

Add a certain amount of months to this date

Implementation

Date addMonths(int amount) => setMonth(month + amount);