subtractMonths method

DateTime subtractMonths(
  1. int months
)

subtractMonths(): Subtracts a specified number of months from a DateTime.

Implementation

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