jquery - How to hide the time part using bootstrap datepicker -
how hide time in datetime picker?
i want hide timer bar in calendar control.
when select date default shows time in textbox, want hide in text input , in calendar too.
moreover want hide past dates.
here have created plunker
<div class='col-sm-6'> <input type='text' class="form-control" id='datetimepicker4' /> </div> <script type="text/javascript"> $(function () { $('#datetimepicker4').datetimepicker(); }); </script>
to show date use format: 'l'
. previous dates can disabled using mindate
.
$('#datetimepicker4').datetimepicker({ format: 'l', mindate: new date() });
see updated plunker here.
Comments
Post a Comment