I have a jquery function which passes the date '27/05/2016 11:25 PM' to a PHP file. The PHP file will update this to the database.
I'm using strtotime to convert this string to date format '05/27/2016 11:25 PM' but strtotime returns false.
My PHP date conversion:
$EndDate = strtotime($Date);
$NewEndDateValue = date('m/d/Y h:i A', $EndDate);
var_dump($NewEndDateValue); //this returns false