strtotime not working
<p>I am new to PHP and trying to convert a date from a registration form (in the form 01/01/2011) to Y-m-d so that it can be stored in the database. </p>

<p>This is the code I have, pretty sure it worked before but now it has stopped working. Any ideas? </p>

<pre><code>$dateformat = $_POST['dob'];
$correctformat = date('Y-m-d',strtortime($dateformat));
</code></pre>

<p>I have checked what <code>$_POST['dob']</code> is printing and it is correct, however the <code>$correctformat</code> is printing <code>1970-01-01</code> everytime. </p>

<p>Any help would be greatly appreciated. </p>

<p>Thanks</p>
