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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -