title: date( ) returns 1970-01-01
body: <p>I am using a jquery datepicker with the following format mm/dd/yyyy but I need it to be yyyy-mm-dd for the sql db so I am using this.</p>
  
  <pre><code>   $date  = date("Y-m-d",strtotime($startdate));
  </code></pre>
  
  <p>with the following</p>
  
  <pre><code> $query = "INSERT INTO complete_table ( name, startdate) VALUES ('$_POST[name]', '$date')";
  </code></pre>
  
  <p>Unfortunately I register 1970-01-01 in the db regardless of what the input is.
  Any idea on what I am doing wrong? Thank you so much for the help.</p>