Skip to content

oakcms/yii2-datetimepicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 DateTime Widget

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'
        ]
    ); 
?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages