MyBB Hacks

Full Version: auto update age with xthreads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello I own an adult movie review site and I used xthreads to list "models" right now I have date of birth and next to it I would like to add I am X amount years old!  How would I allow this field to auto update every year?  Is it possible?

Like:
Birth Date: February 2nd, 1981  (33 Years Old!)

or better yet:
Birth Date: February 2nd, 1981
Age: 33
If your data is stored as a date string or similar it can be done with a little bit of conditional code, eg:

Code:
<?=date('c', time()-strtotime({VALUE}))?>

Reference URL's