public function setValue($value) { return parent::setValue($value instanceof DateTime ? $value->format($this->htmlFormat) : $value); }