I keep getting the following error :
DateTime::__construct(): Failed to parse time string (46-61-9481) at position 0 (4): Unexpected character
which relates to this piece of script within an API
$dob = new DateTime(str_replace('/','-',Input::post('date_of_birth')));
$customer->date_of_birth = $dob->getTimestamp();
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.