public function setDate(\DateTimeInterface $date)
    {
        $this->getDomElement()->nodeValue = $date->format(\DateTime::RFC3339);
        $this->setCachedProperty('content', $date);
    }
public function setDate(\DateTimeInterface $date)
    {
        $this->getDomElement()->nodeValue = $date->format(\DateTime::RFC3339);
        $this->setCachedProperty('content', $date);
    }
public function setDate ( \ DateTimeInterface $ date ) { $ this -> getDomElement ( ) -> nodeValue = $ date -> format ( \ DateTime :: RFC3339 ) ; $ this -> setCachedProperty ( 'content' , $ date ) ; }
Set new date.

@param \DateTimeInterface $date Date and time.

@since 1.0
Set new date .