My Jui Date Time Picker worked just fine, I'm not sure I made any configuration changes anywhere, but now the date picker shows the format as if it were asking for a time with a date.
This is my code for the date field:
<?= $form->field($model, 'joining_date')->widget(DatePicker::className(),
['clientOptions' =>[
'dateFormat' => 'dd-mm-yyyy',
'showAnim'=>'fold',
'changeMonth'=> true,
'changeYear'=> true,
'autoSize'=>true,
'showOn'=> "button",
'buttonImage'=> "images/calendar.gif",
'htmlOptions'=>[
'style'=>'width:80px;',
'font-weight'=>'x-small',
],]]) ?>
in my web.php configuration the corresponding code for dates is similar to
'formatter' => [
'defaultTimeZone' => 'UTC',
'timeZone' => 'Asia/Kolkata',
'dateFormat' => 'php:d-m-Y',
'datetimeFormat'=>'php:d-M-Y H:i:s'
],
Now I'm trying to enter the date the field was received, like 12/07/2014: and the colon after the field, as if I need to add the temporary part, where it comes from, I could not find.
date picker
source
share