public function getValue() { $value = parent::getValue(); if (is_string($value)) { $value = zbase_date_from_format($this->getDateFormat(), $value); } if ($value instanceof \DateTime) { $this->_value = $value->format($this->getDateFormat()); } return $this->_value; }