How to change this date in PHP?
<p>I have times in this format:</p>

<pre><code>2013-04-10 10:25:00
</code></pre>

<p>I don't need the time part, just this:</p>

<pre><code>2013-04-10
</code></pre>

<p>How to do that properly? I don't want to use string deleting from the end but the right way. </p>
