title: PHP: DateTime::__construct() error
body: <p>I keep getting the following error :</p>
  
  <blockquote>
    <p>DateTime::__construct(): Failed to parse time string (46-61-9481) at position 0 (4): Unexpected character</p>
  </blockquote>
  
  <p>which relates to this piece of script within an API</p>
  
  <pre><code> $dob = new DateTime(str_replace('/','-',Input::post('date_of_birth')));
    $customer-&gt;date_of_birth = $dob-&gt;getTimestamp();
  </code></pre>
  
  <p>I have quite limited knowledge when it comes to code but, I'm wondering if anyone would be kind enough to let me know what to change to avoid these errors. </p>