----- Original Message ----- > From: "Yogesh" <[EMAIL PROTECTED]> > Hi! can someone please tell me how to get the current date? See: http://www.php.net/manual/en/function.mktime.php
>Now, how can i perform addition with the date so that i mail that user 3 months after the date > he registered that his registration has expired? Since unix timestamps are in seconds, 3 months is 60*60*24*90 (secs*minutes*hours*days), although that's not quite the same as 3 months. Using a combination of php date/time functions you can come up with exactly what you want. Also look at whatever db software you're using, it certainly will have date functions. Date and time coding is always tedious. You might search in the function library on http://www.zend.com/ and see if there's something there that might be useful to you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php