I have this line of code. obviously it just grabs the date of birth per user and put it in the view where I want it. The problem is that it shows it in a UNIX timestamp. Is there an easy way to adjust the line so the outcome will be the age of the user?
<dl class="clearfix bg-lightgrey user-dash-dl tc">
<dd class="fl br-1 lh36" style="width:72px">
<p class="f11 ff-l lh12 pt33">Age</p>
<p class="ff-m f12"><?= $user_info['date_of_birth']?></p> </dd> </dl>
above you see the code. Thanks:)
= date('Y') - date('Y', $user_info['date_of_birth']) ?>
` – yowza May 24 '16 at 09:51