title: Set Current Date as Selected in Bootstrap datepicker
body: <p>I am using <a href="https://github.com/eternicode/bootstrap-datepicker" rel="noreferrer">bootstrap-datepicker</a> in my code. How Do I select current date in JavaScript and show it as selected?</p>
  
  <p>After research this is code I am using but current day does not appear as selected:</p>
  
  <pre><code>var today = moment();
  
  datepicker1.datepicker({
      endDate: today.toDate()
  }); 
  
  datepicker2.datepicker({
      startDate: today .toDate(),
      endDate: today.toDate()
  });
  
  datepicker1.datepicker('setDate', today.toDate());
  datepicker2.datepicker('setDate', today.toDate());
  
  datepicker1.datepicker('update');  //update the bootstrap datepicker
  datepicker2.datepicker('update');
  </code></pre>