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