title: Parsing php date and time in jquery datepicker
body: <p>I have a dateTime stored in my db as</p>
  
  <pre><code>2014-10-29 19:44:22
  </code></pre>
  
  <p>I am trying to set min date of DatePicker</p>
  
  <p>Here is the code in php. </p>
  
  <pre><code>$creationDate =  $record['creationDate'];
                      $timestamp = strtotime($creationDate);
                      $year  =  date("y", $timestamp);
                      $month =  date("m", $timestamp);
                      $day   =  date("d", $timestamp);
  </code></pre>
  
  <p>Later in jquery </p>
  
  <pre><code> $( "#calendar" ).datepicker({ minDate: new Date(&lt;?php echo $year . "," .$month . "," .$day  . ",1"?&gt;)});
  </code></pre>
  
  <p>result not working
  any fix?</p>