title: past dates are not hiding in date picker?
body: <p>Hello Everyone I'm beginner in Jquery and javascript.In my project I have to use bootstrap.I have tried to execute datepicker to hide past datesDate picker is working even though past dates are not hiding..I have attached the below the code..</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!--html:--&gt;
      &lt;div class="form-group"&gt;
          &lt;div class="col-sm-3 control-label"&gt;
              &lt;label for="FromDate" class="control-label"&gt;FromDate:&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-4"&gt;
              &lt;div class="input-group date"&gt;
                  &lt;div class="input-group-addon"&gt;
                      &lt;i class="fa fa-calendar"&gt;&lt;/i&gt;
                  &lt;/div&gt;
                  &lt;input type="text" name="fromDate" id="fromDate" class="form-control pull-right" data-validation-engine="validate[required]" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;div class="col-sm-3 control-label"&gt;
              &lt;label for="ToDate"&gt;ToDate:&lt;/label&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-4"&gt;
              &lt;div class="input-group date"&gt;
                  &lt;div class="input-group-addon"&gt; &lt;i class="fa fa-calendar"&gt;&lt;/i&gt;
                  &lt;/div&gt;
                  &lt;input type="text" name="toDate" id="toDate" class="form-control pull-right" data-validation-engine="validate[required]"
                      onchange="report();" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      &lt;/div&gt;
                      
                      
                      
  &lt;!--script:--&gt;
      &lt;script type="text/javascript" th:inline="javascript"&gt;
          /*&lt;![CDATA[*/
          // Date picker
          $('#fromDate').datepicker({
              autoclose: true,
              todayHighlight: true,
              format: 'dd-M-yyyy'
          });
          $('#toDate').datepicker({
              autoclose: true,
              todayHighlight: true,
              format: 'dd-M-yyyy'
          });
  
  
          $('#fromDate').datepicker({ minDate: new Date() });
  
          $('#toDate').datepicker({ minDate: new Date() });
  
          /*]]&gt;*/
      &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><em>Thanks!!</em></p>