kak/datetimepicker

datetimepicker widget for Yii2

1.1.0 2022-11-22 13:53 UTC

This package is auto-updated.

Last update: 2024-10-18 14:48:33 UTC


README

Yii widget bootstrap DateTimePicker

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist kak/datetimepicker "*"

or add

"kak/datetimepicker": "*"

to the require section of your composer.json file.

Usage

    use kak\widgets\datetimepicker\DateTimePicker;
?>
...
<?=$form->field($model,'dateIn')->widget(DateTimePicker::className(),[
     'locale' => 'ru',
     'format' => 'DD.MM.YYYY',
     'showInputIcon' => false
])?>

Or

 <?=DateTimePicker::widget([
    'name' => 'dateIn',
    'clientOptions' => [
        'locale' => 'ru'
    ]
]);?>

full docs https://getdatepicker.com/4/Options/ for clientOptions