title: How to disable past date in Bootstrap Datepicker
body: <p>I want to disable past date while picking date in <a href="http://www.eyecon.ro/bootstrap-datepicker/" rel="nofollow noreferrer">Bootstrap datepicker</a>.</p>
  
  <p>In the documentation(Bootstrap Datepicker), I didn't find exactly how to disable past date.</p>
  
  <p>I tried something like these but it didn't work for me.</p>
  
  <pre><code>$(document).ready(function(){
      var todayTmp=new Date();
      var today=new Date(todayTmp.getFullYear(), todayTmp.getMonth(), todayTmp.getDate(), 0, 0, 0, 0);
  
      $('#vDate').datepicker({
          onRender: function(date){
              return date.valueOf() &lt; today.valueOf() ? 'disabled' : '';
          }
      });
  });
  </code></pre>
  
  <p>How to fix it ?</p>