title: Bootstrap DatePicker Set Default Date
body: <p>I'm trying to set the default date for the datepicker but it does not work</p>
  
  <pre><code>$(document).ready(function () {
      $('.datepicker input').datepicker({
          autoclose: true,
          orientation: "top auto",
          todayHighlight: true,
          format: "mm-yyyy",
          viewMode: "months",
          minViewMode: "months",
          setDate: new Date()
      });
  });
  </code></pre>
  
  <p>This is the result</p>
  
  <p><a href="https://i.stack.imgur.com/gnvzF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gnvzF.png" alt="enter image description here"></a></p>