📅  最后修改于: 2022-03-11 15:03:26.109000             🧑  作者: Mango
$form->field($model, 'attribute')->widget(DatePicker::classname(), [
'options' => ['placeholder' => 'Enter birth date ...'],
'pluginOptions' => [
'autoclose'=>true,
'todayHighlight' => true,
'format' => 'yyyy/mm/dd',?,'yyyy-mm-dd',
]
]);