public function month($value = null)
    {
        if ($value !== null) {
            if ($value < 1 || $value > 12) {
                $this->month = 1;
            } else {
                $this->month = $value;
            }
        }
        return $this->month;
    }
public function month($value = null)
    {
        if ($value !== null) {
            if ($value < 1 || $value > 12) {
                $this->month = 1;
            } else {
                $this->month = $value;
            }
        }
        return $this->month;
    }
public function month ( $ value = null ) { if ( $ value !== null ) { if ( $ value < 1 || $ value > 12 ) { $ this -> month = 1 ; } else { $ this -> month = $ value ; } } return $ this -> month ; }
Set the month field of the date object

@param   int     the month
@return  int     the month
Set the month field of the date object