View Single Post
Old 04-23-2008, 02:55 PM   #1 (permalink)
oMIKEo
The Contributor
 
oMIKEo's Avatar
 
Join Date: Jan 2008
Location: Leeds
Posts: 52
Thanks: 7
oMIKEo is on a distinguished road
Default date/mktime for next week?

Hi,

I'm trying to work out an easy way to calculate the date for next week based on the current date.

im using
PHP Code:
$varOnemktime(000date("m")  , date("d"), date("Y"));
$varTwo=  date('Y-m-d'$varOne); 
What i want is to know the date for next Mon, Tue, Wed, etc.

So if its Monday today i need to know the current date + 7, if its Tuesday i need to know current date +8, etc.

is there an easy way without a load of IF statments?

Thanks,
Mike
Send a message via MSN to oMIKEo
oMIKEo is offline  
Reply With Quote