Re: [PHP] Calculating the difference between two dates

2003-03-23 Thread Greg Beaver
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

RE: [PHP] Calculating the difference between two dates

2003-03-23 Thread Don Read
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', st

[PHP] Calculating the difference between two dates

2003-03-23 Thread Beauford.2002
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. TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Calculating the difference between two dates

2001-04-23 Thread Plutarck
Try mkdate. You'll have to make sure it's in a format it knows, but it works. -- Plutarck Should be working on something... ...but forgot what it was. ""Stuart Rees"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Please can someone tell me there is a nice

[PHP] Calculating the difference between two dates

2001-04-23 Thread Stuart Rees
Please can someone tell me there is a nice function that can calculate the difference between two dates. If there isn't such a function I'm sure someone could tell me how I can do a different way. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad