bootstrap date \picker code example
Example 1: date picker for bootstrap 4
<input class="datepicker" data-date-format="mm/dd/yyyy">
Example 2: datepicker bootstrap
<div class="container">
<div class="row">
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date' id='datetimepicker2'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$('#datetimepicker2').datetimepicker({
locale: 'ru'
});
});
</script>
</div>
</div>
Example 3: datepicker bootstrap
$(document).off('.datepicker.data-api');
Example 4: datepicker bootstrap
var datepicker = $.fn.datepicker.noConflict(); // return $.fn.datepicker to previously assigned value
$.fn.bootstrapDP = datepicker; // give $().bootstrapDP the bootstrap-datepicker functionality