How to convert a date-time into string in PHP?
<p>I have a date as follows.</p>

<pre><code>$discount_start_date='03/27/2012 18:47';

$start_date=new DateTime($discount_start_date);
$start_date-&gt;format('Y/m/d H:i:s');
</code></pre>

<p>How can I convert it to a string in PHP so that it can be stored into MySql? I'm from Java background and very new to PHP.</p>
