title: How to work Bootstrap datepicker?
body: <p>So I know there are plenty of threads and I've gone through the official <a href="https://bootstrap-datepicker.readthedocs.io/en/stable/index.html" rel="nofollow noreferrer">documentation</a> and tried the options laid out <a href="https://bootstrap-datepicker.readthedocs.io/en/stable/index.html" rel="nofollow noreferrer">here</a>, but this Datepicker is my mortal enemy and it simply never does what I, in any way, seek to do: </p>
  
  <p>Currently (and for whatever reason) only future dates can be picked. I, on the other hand, want only dates that are longer than 21 years in the past to be pickable. Along with everything in the past. In fact, just having any dates in the past enabled would already help. </p>
  
  <p>This is what I have at the moment - and to my surprise the DateFormat works - and in general Dates get saved. </p>
  
  <pre><code>  $('.datepicker').datepicker({
        format: 'dd/mm/yyyy'
        endDate: '+0d',
        autoclose: true
    });
  </code></pre>
  
  <p>Working with this <a href="https://github.com/Nerian/bootstrap-datepicker-rails" rel="nofollow noreferrer">gem</a>.</p>
  
  <p>With every project no matter how complex or simple, this is the only problem I am having. Always, and ever :).</p>