-1

The components shows only time picker:only timer..calender not showing.img

.form-group
    label.col-xs-5.control-label test field
    .col-xs-5
      #fromDate.input-group.date
        input.form-control(type='text')
          span.input-group-addon
          span.glyphicon.glyphicon-calendar
$(function () {
  $('#fromDate').datetimepicker({
    sideBySide: true,
    locale:'en-ca'
  });
})

Why calendar is not showing?

VincenzoC
  • 30,117
  • 12
  • 90
  • 112
이충현
  • 1
  • 3
  • Do you have custom css that affects the datetimepicker? The component has the [`debug`](https://eonasdan.github.io/bootstrap-datetimepicker/Options/#debug) option , if you set it to `true`, you can inspect datetimepicker parts and investigate further. – VincenzoC Sep 27 '17 at 22:29

1 Answers1

1

it seems like you are using eonasdan-datetimepicker

I copied your template, and it is working as it should.

Fiddle

HTML

<div class="form-group">
  <label class='label col-xs-5 control-label test field'></label>
  <div class="col-xs-5">
    <div class='input-group date' id='myDatepicker'>
      <input type='text' class="form-control" />
      <span class="input-group-addon">
     <span class="glyphicon glyphicon-calendar"></span>
      </span>
    </div>
  </div>
</div>

JS Code

$('#myDatepicker').datetimepicker({
  sideBySide: true,
  locale: 'en-ca'
});
William-H-M
  • 1,050
  • 1
  • 13
  • 19