[FX.php List] PHP Calculated Age

Jonathan Schwartz jonathan at eschwartz.com
Sun Nov 5 11:25:41 MST 2006


Hi Folks,

Can't seem to get a handle on how to have PHP calculated an age based 
on birthdate and a particular deadline (April 30 ,2007)...and not the 
current date.

So if a user was born on April 1, 2000, the age should be 6.  If the 
person was born on May 1, 2000,the age would be 7.  Just need the 
single digit.

The problem is the data math, not the logic. Going a round in circles 
between date() time() and timestamp().



Jonathan
-- 

Jonathan Schwartz
FileMaker 8 Certified  Developer
Associate Member, FileMaker Solutions Alliance
Schwartz & Company
jonathan at eschwartz.com
http://www.eschwartz.com
http://www.exit445.com
415-381-1852



More information about the FX.php_List mailing list