I have a function which calculates age from a given date
public function showAge()
{
if ($this->account_id == 1 && !empty($this->profile->birthday))
{
return date_diff(date_create($this->profile->birthday), date_create('today'))->y;
}
}
My question is: can I do some kind of reverse function (calculate the date by a given age)?