I have the following date.
$discount_start_date='03/27/2012 18:47'; $start_date=new DateTime($discount_start_date); $start_date->format('Y/m/d H:i:s');
How can I convert it to a string in PHP so that it can be stored in MySql? I am from Java background and very new to PHP.
source share