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,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php