I have a GMT formatted date 15/10/2012 and when I run strtotime() on it it returns false. I’ve tried setting the default time zone, which doesn’t change anything and I’ve even tried doing the following.
$date = new DateTime($formatted);
$date->setTimezone('Europe/London');
return $date->getTimestamp();
Still no result however.
Anyone got any ideas please?
http://www.php.net/manual/en/datetime.createfromformat.php
edit: updated timezone syntax.