title: DateTime::__construct(): Failed to parse time string (//) at position 0 (/): Unexpected character
body: <p>Could not pass date to MySQL using php POST method. Got the error as given in the title.
  Here is my code.</p>
  
  <pre><code>&lt;code&gt;
  date_default_timezone_set("Asia/Kolkata");
  $dd = substr($dob,0,2)."/";
  $mm = substr($dob,3,2)."/";
  $yyyy = substr($dob,6,4);
  $fd = $yyyy.$mm.$dd;
  $date = new DateTime($fd);
  $formDateConverted = $date-&gt;format('Y-m-d');
  &lt;code&gt;
  </code></pre>