Bootstrap\View\Helper\BootstrapFormHelper::date PHP Метод

date() публичный Метод

### Options: See dateTime() for date options.
См. также: Cake\View\Helper\FormHelper::dateTime() for templating options.
public date ( string $fieldName, array $options = [] ) : string
$fieldName string Prefix name for the SELECT element
$options array Array of Options
Результат string Generated set of select boxes for time formats chosen.
    public function date($fieldName, array $options = [])
    {
        $fields = ['year' => true, 'month' => true, 'day' => true];
        return $this->_wrapTemplates(['dateWidget' => $this->_getDatetimeTemplate($fields, $options)], 'parent::date', [$fieldName, $options]);
    }