<?= $form->field($model, 'name')->widget(DatePicker::classname(), [
'language' => '',
'dateFormat' => 'yyyy-MM-dd',
'options' => ['class' => 'form-control'],
]) ?>
DatePicker 怎么显示时分秒呢?
换dateTimePicker
<?= $form->field($model, 'name')->widget(DatePicker::classname(), [
'language' => '',
'dateFormat' => 'yyyy-MM-dd',
'options' => ['class' => 'form-control'],
]) ?>
DatePicker 怎么显示时分秒呢?
换dateTimePicker