public static function lastDayOfTheMonth($intMonth, $intYear)
    {
        $temp = date('Y-m-t', mktime(0, 0, 0, $intMonth, 1, $intYear));
        return new QDateTime($temp);
    }
public static function lastDayOfTheMonth($intMonth, $intYear)
    {
        $temp = date('Y-m-t', mktime(0, 0, 0, $intMonth, 1, $intYear));
        return new QDateTime($temp);
    }
public static function lastDayOfTheMonth ( $ intMonth , $ intYear ) { $ temp = date ( 'Y-m-t' , mktime ( 0 , 0 , 0 , $ intMonth , 1 , $ intYear ) ) ; return new QDateTime ( $ temp ) ; }
Returns a new QDateTime object set to the last day of the specified month.

@param int $intMonth
@param int $intYear
@return QDateTime the last day to a month in a year
Returns a new QDateTime object set to the last day of the specified month .