title: Update bootstrap 3 datepicker options dynamically?
body: <p>This datepicker it is already created with other default options, but I need to update it with the following new options and it does not seem to work:</p>
  
  <pre class="lang-js prettyprint-override"><code>// new options
  var new_options = {
      format: 'dd/mm/yyyy',
      autoclose: true,
      language: 'es'
  }
  
  // update values
  $("#fecha_periodo").datepicker("update", new_options );
  </code></pre>
  
  <p>I would also like to update other options like <code>daysOfWeekDisabled</code>, <code>viewMode</code> and so on.</p>