How to convert this (in ISO8601 format): 2014-03-13T09:05:50.240Z
To this (in MySQL DATE format): 2014-03-13
Since PHP 5.2.0 you can do it using OOP and DateTime() as well (of course if you prefer OOP):
5.2.0
$now = new DateTime("2014-03-13T09:05:50.240Z"); echo $now->format('Y-m-d'); // MySQL datetime format