public function date($var = null)
    {
        if ($var !== null) {
            $this->date = Utils::date2timestamp($var, $this->dateformat);
        }

        if (!$this->date) {
            $this->date = $this->modified;
        }

        return $this->date;
    }
public function date($var = null)
    {
        if ($var !== null) {
            $this->date = Utils::date2timestamp($var, $this->dateformat);
        }

        if (!$this->date) {
            $this->date = $this->modified;
        }

        return $this->date;
    }
public function date ( $ var = null ) { if ( $ var !== null ) { $ this -> date = Utils :: date2timestamp ( $ var , $ this -> dateformat ) ; } if ( ! $ this -> date ) { $ this -> date = $ this -> modified ; } return $ this -> date ; }
Gets and sets the date for this Page object. This is typically passed in via the page headers

@param  string $var string representation of a date

@return int         unix timestamp representation of the date
Gets and sets the date for this Page object . This is typically passed in via the page headers