bootstrap form for date and time picker code example

Example 1: How to add Datepicker in Bootstrap(HTML form)

<link href="~/Content/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />

Example 2: How to add Datepicker in Bootstrap(HTML form)

<div class='container' style='margin-top: 100px;'>
 <input type='text' class="form-control" id='datepicker' style='width: 300px;' > <br>
 <input type='text' class="form-control" data-provide="datepicker" style='width: 300px;' >
</div>

<!-- Script -->
<script type="text/javascript">
$(document).ready(function(){
 $('#datepicker').datepicker(); 
});
</script>

Tags:

Misc Example