title: Take date of input and enter it as the minDate of the Jquery datepicker
body: <p>I have the following input:</p>
  <pre><code>&lt;input type=&quot;hidden&quot; class=&quot;old_ship_date&quot; name=&quot;old_ship_date&quot; value=&quot;&lt;?php echo esc_attr( substr( $current_date, 0, 10 ) ); ?&gt;&quot;&gt;
  </code></pre>
  <p>The date within that input is &quot;yyyy-mm-dd&quot;.</p>
  <p>I want to take that date and enter it into the <code>minDate</code> option of the datepicker. Is there a way I can just enter a date?</p>
  <pre><code>jQuery(document).ready(function($){
      var now = new Date();
      $('#mypicker').datepicker({
      //options
      dateFormat: &quot;yyyy-mm-dd&quot;,
      minDate: $('.old_ship_date').val(),
      firstDay: 0,
      onSelect: function(dateText) {
          $('.new_ship_date').val('');
          $('.new_ship_date').val(dateText);
      },
      beforeShowDay: $.datepicker.noWeekends,
  });
  </code></pre>