/** * @see Document\Tag\TagInterface::frontend */ public function frontend() { if (!isset($this->options["format"]) || !$this->options["format"]) { $this->options["format"] = \DateTime::ISO8601; } if ($this->date instanceof \Zend_Date) { return $this->date->toString($this->options["format"], "php"); } elseif ($this->date instanceof \DateTimeInterface) { return $this->date->formatLocalized($this->options["format"]); } }