kartik datepicker
$form->field($model, 'attribute')->widget(\kartik\date\DatePicker::classname(), [
'pluginOptions' => [
'autoclose' => true,
'format' => 'yyyy-mm-dd',
'todayHighlight' => true
]
]);