Re: Problem with mktime, need to add 30 days to current date
| From: | Marek Kilimajer | Date: | Wed, 20 Aug 2003 09:20:05 +0000 |
| Subject: | Re: Problem with mktime, need to add 30 days to current date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160147@lists.php.net to get a copy of this message | ||
$endDate=date('Y-m-d',strtotime("+30 day"));
James Johnson wrote:
Sorry about the previous post. Hi, I need to make a date that is 30 days from the current date, and, am having problems with mktime Here's what I've tried: $endDate=date('Y-m-d',mktime(0,0,0,date('m',time()),30,date('y',time())) ); Return this: 2003-08-30 Is there an easy way to do this? Thanks, James