nvlad / yii2-bootstrap-datetimepicker
Datetimepicker widget for Yii2 framework
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Language:JavaScript
Type:yii2-extension
pkg:composer/nvlad/yii2-bootstrap-datetimepicker
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-01-07 14:53:05 UTC
README
Datetimepicker widget for Yii2 framework Based on https://github.com/Eonasdan/bootstrap-datetimepicker
NOTE Here might be some bugs or follies. Contribute to remove them ;)
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist trntv/yii2-bootstrap-datetimepicker "*"
or add
"trntv/yii2-bootstrap-datetimepicker": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'attribute')->widget('trntv\yii\datetimepicker\DatetimepickerWidget'); ?>
Options
phpDatetimeFormat - PHP ICU datetime format
momentDatetimeFormat - Moment JS datetime format
clientOptions - http://eonasdan.github.io/bootstrap-datetimepicker/#options