Page 1 of 1

Date

Posted: Wed Apr 09, 2003 7:12 pm
by Mr. Tech
Hi!

I have this product where it says:

Buy in the before (Date is shown here) and get a discount.

I want to replace (Date is shown here) with the date in 7 days time. So if it was the 7th that day, it would show the 14th.

I just can't work it out.

Any ideas?

Posted: Wed Apr 09, 2003 7:14 pm
by Mr. Tech
Worked it out:

$days = 7*24*60*60;
$time = $now + $days;
$time = date('l jS F', $time);

echo "$time";