How do I convert a php date string from Y/m/d to Y-m-d
<p>I have a string that's currently <code>16/06/2012</code> and I'd like to convert it into <code>2012-06-16</code>.</p>

<p>How do I do this?</p>
