title: bootstrap Datepicker : set value as last day of the month not working
body: <p>I have a bootstrap datepicker on months mode. I need the value to be last day of the month.
  How do I make this code work?</p>
  
  <pre><code>  $("#end-date").datepicker({
              minViewMode: 1,
  
      }).on('changeMonth',function(e)
          {                               
              //value of the end month is the last day of month       
              alert( new Date(e.date.getYear(), e.date.getMonth() + 1, 0));
                $("#end-date-catalog").datepicker('update', new Date(e.date.getYear(), e.date.getMonth() + 1, 0));
          });
  </code></pre>
  
  <p>plugin demo (<a href="http://eternicode.github.io/bootstrap-datepicker/?markup=embedded&amp;format=&amp;weekStart=&amp;startDate=e&amp;endDate=&amp;startView=0&amp;minViewMode=1&amp;todayBtn=false&amp;clearBtn=false&amp;language=en&amp;orientation=auto&amp;multidate=&amp;multidateSeparator=&amp;keyboardNavigation=on&amp;forceParse=on#sandbox" rel="nofollow noreferrer">here</a>)
  jsfiddle (<a href="http://jsfiddle.net/JBh3x/134/" rel="nofollow noreferrer">here</a>)</p>