public function beforeValidate() { $this->start_at = DDateTimeHelper::DateToUnix($this->start_date); return parent::beforeValidate(); }