title: how to restrict bootstrap date picker from future date
body: <p>I want to restrict the date picker of bootstrap from taking future date.I just want to enable the dates up to today only.How can i achieve this.</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;script&gt;
    var FromEndDate = new Date();
  
     $(function(){
       $('.datepicker').datepicker({
         format: 'mm-dd-yyyy',
         endDate: FromEndDate, 
         autoclose: true
       });
     });
  &lt;/script&gt;
  </code></pre>
  
  <p>Can any body help regarding this</p>