public function setDataFromEditmode($data) { if (strlen($data) > 5) { $timestamp = strtotime($data); $this->setDateFromTimestamp($timestamp); } return $this; }