$ php composer.phar require kartik-v/yii2-widget-datepicker "@dev"
$form->field($model, 'attribute')->widget(\kartik\date\DatePicker::classname(), [ 'pluginOptions' => [ 'autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true ] ]);
$form->field($model, 'attribute')->widget(DatePicker::classname(), [ 'options' => ['placeholder' => 'Enter birth date ...'], 'pluginOptions' => [ 'autoclose'=>true, 'todayHighlight' => true, 'format' => 'yyyy/mm/dd',?,'yyyy-mm-dd', ] ]);