I need to convert this date in string format iso format to save in mysql.
string(16) "25/02/2015 11:10"
I need to convert this date in string format iso format to save in mysql.
string(16) "25/02/2015 11:10"
date('Y-m-d H:i:s', strtotime('25-02-2015 11:10'));
You need to use dashes instead of the slashes.