I am using yii2 DatePicker and want to use some lable as "Schedule Date" with date picker field in Active form. Another thing I want that the default date should be current date selected and disable the previous dates/days.
Thanks in advance to solve my problem
My Date picker code is here
<?php
echo DatePicker::widget([
'model' => $model,
'attribute' => 'BS_ScheduledDate',
'dateFormat' => 'yyyy-MM-dd',
]);
?>
This is used disable previous dates
And use below model function for setting labels