How to create bootstrap date picker with the current date
I will show you how to use the Bootstrap date picker current date highlight with example. You can apply this code and solve your error.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/js/bootstrap-datepicker.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.4/css/bootstrap-datepicker.css" rel="stylesheet"/>
<input type="text" value="" class="datepicker">
<script type="text/javascript">
$(document).ready(function() {
$('.datepicker').datepicker({
todayHighlight: true,
});
});
</script>