[PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread James Johnson
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: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread James Johnson
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?

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread Sn!per
print date('Y-m-d',mktime(0,0,0,date('m'),date('d')+30,date('Y'))); Quoting James Johnson [EMAIL PROTECTED]: 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:

Re: [PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread Marek Kilimajer
$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()))