Returns a new xtd::date_time that adds the specified number of months to the value of this instance.
months | A number of months. The months parameter can be negative or positive. |
xtd::argument_out_of_range_exception | The resulting xtd::date_time is less than xtd::date_time::min_value or greater than xtd::date_time::max_value. -or- months is less than -120,000 or greater than 120,000. |