Closed remyatgeorge closed 8 years ago
Try this options This is bootstrap datepicker, not jQuery.
echo DatePicker::widget([
'name' => 'month_only',
'value' => date('M-Y', strtotime('+2 days')),
'options' => ['placeholder' => 'Select issue date ...'],
'pluginOptions' => [
'autoclose' => true,
'startView'=>'year',
'minViewMode'=>'months',
'format' => 'M-yyyy',
'todayHighlight' => true
]
]);
Im using the date picker widget inside the gridview to filter. But i need a datepicker that shows only month and year. I have tried many options like - 'changeMonth'=>true, 'changeYear'=>true, 'changeDay'=>false, but not working. This is my code: