Kartik DateTimePicker widget

Hi, Kartik, I am trying to use the datetime widget. My code is like this



echo $form->field($model, 'admission_time')->widget(DateTimePicker::classname(), [

'options' => ['placeholder' => 'Enter Admission Time ...'],

'pluginOptions' => [

'autoclose' => true




The problem I am facing is that the calendar is always shown and on clicking on the calendar the date and time is not getting entered in the field.