protected function setDate(Date $date)
    {
        $this->date = $date;
        $this->strDate = $date->toString();
    }
protected function setDate(Date $date)
    {
        $this->date = $date;
        $this->strDate = $date->toString();
    }
protected function setDate ( Date $ date ) { $ this -> date = $ date ; $ this -> strDate = $ date -> toString ( ) ; }
Sets the date to be used by all other methods in the controller.
If the date has to be modified, this method should be called just after
construction.

@param Date $date The new Date.
@return void
@api
Sets the date to be used by all other methods in the controller . If the date has to be modified this method should be called just after construction .