title: How to set minDate to current date in jQuery UI Datepicker?
body: <p>This is my code and it is not working correctly. I want to set <code>minDate</code> to the current date. How can I do it?</p>
  
  <pre><code>$("input.DateFrom").datepicker({
      changeMonth: true, 
      changeYear: true, 
      dateFormat: 'yy-mm-dd',
      maxDate: 'today',
      onSelect: function(dateText) {
          $sD = new Date(dateText);
          $("input#DateTo").datepicker('option', 'minDate', min);
      }
  </code></pre>