Getting age from yyyy-mm-dd
| From: | Ryan A | Date: | Wed, 18 Feb 2004 16:19:25 +0000 |
| Subject: | Getting age from yyyy-mm-dd | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178129@lists.php.net to get a copy of this message | ||
Hi,
I'm working on a set of scripts not written by me.
Theres a "date_of_birth" field there that has the values in this format
YYYY-MM-DD, the client wants me to
print out the age of the person from that...looking in the manual
(http://se.php.net/manual/en/function.date.php)
I think I will need to use mktime....but how??
Any help appreciated, in URL form, hints or PHP manual references.
Thanks,
-Ryan