Re: FN-FORUM: PHP Date
date posted 15th August 2005 09:35
On 15 Aug 2005 08:42:15 -0000, Paul Summers [EMAIL REMOVED] wrote:
>=20
> I'm using $cdate =3D date (date l, f j Y); to get an output of today's
> date, is there a simple way to get this to actually read the date of a
> set number of days in the future, so instead of the cdate var returning
> Monday, 15 August 2005 - to return Tuesday, 15 September 2005.
>=20
> Is there an easy way to do this with out long winded scripting?
http://uk.php.net/manual/en/function.strtotime.php
$cdate =3D date('l, F j Y', strtotime('+2 days'));
-robin