public function setValue($value = null, $fromDb = false) { if ($fromDb) { $value = $this->datetime($value)->format('Y-m-d'); } return parent::setValue($value, $fromDb); }