title: Disable Past Dates using DatePicker by 'Stefan Petre'
body: <p>Due to some restriction I have to use DatePicker written by Stefan Petre and I need to be able to disable past dates, you can find implementation of his DatePicker here: <a href="http://www.eyecon.ro/datepicker/" rel="nofollow">http://www.eyecon.ro/datepicker/</a></p>
  
  <p>According to him, I would be able to disable dates onRender function but appreantly this would disable all dates:</p>
  
  <pre><code>var date = new Date();
  date.setDate(-1);
  onRender : function(){
             return{
                  disabled : date &lt; new Date()
             };
          }
  </code></pre>
  
  <p>Have you previously worked with this custom DatePicker library? if so your advice is much appreciated.</p>