SocialEngine 4: Display Age Instead of Date of Birth

Would you rather see your members displaying their age as a number and not their Full DOB

Follow this guide to make Age become a Number

1. Edit this file:


2. Search this code:

$age = (int)(- $date->sub(time()) / 365 / 86400);

After that code add this code:

$label = $age;

It should look like this:

$age = (int)(- $date->sub(time()) / 365 / 86400);
$label = $age;

3. You are done.

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *