<?php $theDate = '21 June, 2016'; $dt = new DateTime( $theDate ); $myDate = $dt->format('Y-m-d'); var_dump( json_decode($myDate, true) ); echo json_last_error_msg();
You have javascript disabled. You will not be able to edit any code.