oakcms/yii2-datetimepicker

Yii2 DateTime Widget

Installs: 279

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.0 2016-06-03 16:35 UTC

This package is not auto-updated.

Last update: 2021-04-07 02:48:39 UTC


README

Yii2 DateTime Widget

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"oakcms/yii2-datetimepicker": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

use oakcms\yii2-datetimepicker\DateTimeWidget;

<?= $form->field($model, 'field')->widget(
        DateTimeWidget::className(),
        [
            'phpDatetimeFormat' => 'dd.MM.yyyy, HH:mm'
        ]
    ); 
?>