php issues with date validation
<p>Never mind I did not try hard enough, here is what I was looking for:</p>

<pre><code>$dob = '1980-09-04';
echo $dob;
$age = date('Y') - date('Y', strtotime($dob));
echo $age;
if (date('md') &lt; date('md', strtotime($dob))) {
    $age--;
    echo $age;
}
</code></pre>

<p>Sorry for the unnecessary question.</p>
