public function __toString() { if (!$this->value instanceof DateTime) { return ''; } return $this->value->format($this->stringFormat); }