addMonths method

DateTime addMonths(
  1. int months
)

addMonths(): Adds a specified number of months to a DateTime.

Implementation

DateTime addMonths(int months) {
  return DateTime(year, month + months, day, hour, minute, second,
      millisecond, microsecond);
}