guild/backend/widgets/views/date_range.php
2019-06-25 12:37:09 +03:00

21 lines
368 B
PHP

<?php
/**
* @var $model \yii\db\ActiveRecord
*/
use yii\jui\DatePicker;
echo DatePicker::widget([
'model' => $model,
'attribute' => 'dt_from',
'language' => 'ru',
'dateFormat' => 'dd-MM-yyyy',
]);
echo " - ";
echo DatePicker::widget([
'model' => $model,
'attribute' => 'dt_to',
'language' => 'ru',
'dateFormat' => 'dd-MM-yyyy',
]);