finding out the age from a birthdate

From: Date: Tue, 14 Dec 2004 21:37:41 +0000
Subject: finding out the age from a birthdate
Groups: php.general 
Request: Send a blank email to php-general+get-204340@lists.php.net to get a copy of this message
Hi there, i am somehow strugling to find out how to get the age of a person from its birthdate. If I divide the date from today, there still is a year instead of the age. And deviding the years does not work since we should be accurat about the day. I tried: $age[] = date("Y",(time()-$birthday)); (where birthday is a unix timestamp) Has anybody an idea how to do that? Thanx, Merlin

« previous php.general (#204340) next »