protected function getClientScriptOptions() { $options = parent::getClientScriptOptions(); $options['DataType'] = $this->getDataType(); if (($dateFormat = $this->getDateFormat()) !== '') { $options['DateFormat'] = $dateFormat; } return $options; }