/** * {@inheritdoc} * * Add .form-control class to datetime selects * * @param string $fieldName Prefix name for the SELECT element * @param array $options Array of Options * @return string Generated set of select boxes for time formats chosen. * @see Cake\View\Helper\FormHelper::dateTime() for templating options. */ public function date($fieldName, array $options = []) { $this->addDatetimeClasses($options, ['year', 'month', 'day']); return parent::date($fieldName, $options); }