I am using bootstrap date time picker in my web application, made in PHP/HTML5 and JavaScript. I am currently using one from here: http://tarruda.github.io/bootstrap-datetimepic
This is for: Eonasdan's Bootstrap Datetimepicker
First of all I would provide an id
attribute for the and then initialize the datetimepicker directly for that
(and not for the parent container):
For v3: Contrary to Ck Maurya's answer:
pickDate: false
will disable the date and only allow to pick a timepickTime: false
will disable the time and only allow to pick a date (which is what you want).For v4: Bootstrap Datetimepicker now uses the format to determine if a time-component is present. If no time component is present, it won't let you choose a time (and hide the clock icon).