title: how to set startDate to beginning of the month in bootstrap datepicker?
body: <p>I have two text field one for start date and one for end date.
  For start date i want to set beginning of the month as default. But not getting how to accomplish that.</p>
  
  <p>This is my code</p>
  
  <pre><code>&lt;%= javascript_include_tag 'bootstrap-datepicker.js'%&gt;
  
  &lt;%= form_tag '/mine', :class =&gt; "form-inline" do %&gt;
   &lt;%= label_tag 'start_date', 'Start Date' %&gt;
   &lt;%= text_field_tag 'start_date', nil, :class =&gt; 'calendar1' %&gt;
   &lt;%= label_tag 'end_date', 'End Date' %&gt;
   &lt;%= text_field_tag 'end_date', nil, :class =&gt; 'calendar' %&gt;
  &lt;% end %&gt;
  
  &lt;script&gt;
  $(".calendar").datepicker({format: "dd/mm/yyyy"});
  $(".calendar1").datepicker({format: "dd/mm/yyyy"});
  &lt;/script&gt;
  </code></pre>
  
  <p>I tried like this by referring <a href="http://bootstrap-datepicker.readthedocs.org/en/release/options.html" rel="nofollow">here</a></p>
  
  <pre><code>$(".calendar1").datepicker({format: "dd/mm/yyyy", startDate: Date.today.beginning_of_month});
  or
  $(".calendar1").datepicker({format: "dd/mm/yyyy",setDate date(Date.today.beginning_of_month)});
  </code></pre>