public function addMonths($intMonths)
    {
        $prevDay = $this->Day;
        $this->Month += $intMonths;
        if ($this->Day != $prevDay) {
            $this->Day = 1;
            $this->addDays(-1);
        }
        return $this;
    }
public function addMonths($intMonths)
    {
        $prevDay = $this->Day;
        $this->Month += $intMonths;
        if ($this->Day != $prevDay) {
            $this->Day = 1;
            $this->addDays(-1);
        }
        return $this;
    }
public function addMonths ( $ intMonths ) { $ prevDay = $ this -> Day ; $ this -> Month += $ intMonths ; if ( $ this -> Day != $ prevDay ) { $ this -> Day = 1 ; $ this -> addDays ( - 1 ) ; } return $ this ; }
Add months to the time. If the day on the new month is greater than the month will allow, the day is adjusted
to be the last day of that month.

@param integer $intMonths
@return QDateTime
Add months to the time . If the day on the new month is greater than the month will allow the day is adjusted to be the last day of that month .