finding out the age from a birthdate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux