By Fagault Eric on Sunday, 27 May 2018
Posted in General
Replies 1
Likes 0
Views 725
Votes 0
Hello,
In a module, I would like to display the age of the member, for that I use:

$genderAge = $profile->getFieldValue('BIRTHDAY');

But in this case, of course, I display the day, the month and the year.

I tried

JFactory :: getDate($genderAge) ->format('Y');

But that does not work.

Do you have an idea.

Best regards.
Eric
Hi there,

You can refer those codes here .../media/com_easysocial/apps/fields/user/birthday/widgets/profile/view.html.php under getAge() function. You can re-use those codes on that function and include them on your module.

By the way, I am really sorry but unfortunately we cannot assist you further on this as our support does not cover support for customization or tweaks.

Thank for your understanding.
·
Monday, 28 May 2018 10:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post