Converting date formats in PHP
<p>I have a date:</p>

<pre><code>20-01-2013
</code></pre>

<p>I need it to be in a format for the database:</p>

<pre><code>2013-01-20 20:39:39
</code></pre>

<p>So far I have this:</p>

<pre><code>$originalDate = "20-01-2013";
$newDate = date("Y-m-d", strtotime($originalDate));
</code></pre>

<p>But how do I get the time added to the end? I just want it to be 00:00:00.</p>

<p>Thanks</p>
