I have a string - 15/09/2015 12:00 - [Day/Month/Year] Format, I want to convert it to Year-Month-Day [mysql date time format].
I tried to use the following:
$myDateTime = $myDateTime->createFromFormat('d/m/Y H:i', '15/09/2015 12:00');
$newDateString = $myDateTime->format('Y-m-d H:i');
but it throws an internal server error.
xx/xx/xxxxformat belongs tomm/dd/yyyy, thats why strtotime() will returnfalse.