This is how I started making a birthday system to say how old you are, like on Facebook. So now I’m doing it in Danish 11-1-1993. This is the first day and after months and here after years of when to come into the world or what to say.
Here I show you some code on how I chose to do it, but the problem is such that it does not bother to show up in some way it’s just empty.
<li>Alder: <?php echo $alder_d;?>/<?php echo $alder_m;?>-<?php echo $alder_aar;?> -
<?php
$alle_alder = $alder_d . $alder_m . $alder_aar;
function age_from_dob($alle_alder) {
return floor((time() - strtotime($alle_alder)) / 31556926);
}
?>
</li>
Asks if you want to know more
It’s down here in function as I’d like it to find out how old you are.
If you want to calculate years you can just
Output