04-23-2008, 02:55 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: Leeds
Posts: 52
Thanks: 7
|
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:
$varOne= mktime(0, 0, 0, date("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
|
|
|