PHP code example of oakcms / yii2-datetimepicker
1. Go to this page and download the library: Download oakcms/yii2-datetimepicker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oakcms / yii2-datetimepicker example snippets
use oakcms\yii2-datetimepicker\DateTimeWidget;
<?= $form->field($model, 'field')->widget(
DateTimeWidget::className(),
[
'phpDatetimeFormat' => 'dd.MM.yyyy, HH:mm'
]
);
php composer.phar