public static function GetDaysInMonth( int $year, int $month ) : int
   {

      $dt = new \DateTime();
      $dt->setDate( $year, $month, 2 );
      $dt->setTime( 0, 0, 2 );

      return \intval( $dt->format( 't' ) );

   }
public static function GetDaysInMonth( int $year, int $month ) : int
   {

      $dt = new \DateTime();
      $dt->setDate( $year, $month, 2 );
      $dt->setTime( 0, 0, 2 );

      return \intval( $dt->format( 't' ) );

   }
public static function GetDaysInMonth ( int $ year , int $ month ) : int { $ dt = new \ DateTime ( ) ; $ dt -> setDate ( $ year , $ month , 2 ) ; $ dt -> setTime ( 0 , 0 , 2 ) ; return \ intval ( $ dt -> format ( 't' ) ) ; }
Gets the days of the defined month in defined year.

@param  integer $year
@param  integer $month
@return integer
Gets the days of the defined month in defined year .