Re: Calculating the difference between two dates
| From: | Greg Beaver | Date: | Mon, 24 Mar 2003 02:37:53 +0000 |
| Subject: | Re: Calculating the difference between two dates | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140791@lists.php.net to get a copy of this message | ||
Hi,
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,