Ask them who the president of the United States was before Britney Spears, that should work pretty well :)
Otherwise, check out the Date package in PEAR at http://pear.php.net/package-info.php?pacid=57
Greg -- phpDocumentor http://www.phpdoc.org
Don Read wrote:
On 24-Mar-1998 Beauford.2002 wrote:
Does any one know how to calculate the difference between two dates. I need to find out the age of a user to make sure they are over the age of 13. I have searched for hours on this and found nothing that will help.
Start here:
echo date('Y-m-d', strtotime('13 years ago'));
Sorry, it doesn't check the birth certificate ;)
Regards,
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php