|
|
 |
Re: FN-FORUM: PHP Date
date posted 15th August 2005 09:09
You could try:
$datemonth = mktime(0, 0, 0, date("m")+1 , date("d"), date("Y"));
$cdate = date("l, f j Y",$datemonth);
the mktime function will allow you to increment the day, month and year with
just a "+1".
Hope this helps.
Gareth
----- Original Message -----
From: "Paul Summers" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, August 15, 2005 9:42 AM
Subject: FN-FORUM: PHP Date
I'm using $cdate = 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.
Is there an easy way to do this with out long winded scripting?
Thanks
Paul
Paul Summers
Systems Developer
Digital Arts IT Consultancy
Telephone. 0870 01 02 226
Fax. 0870 01 02 227
Email. [EMAIL REMOVED]
http://www.daitc.com
Please Note:
This message contains information which is confidential and may also be
privileged. It is for the exclusive use of the intended recipient(s). If you
are not the intended recipient(s) please note that any form of distribution,
copying or use of this communication or the information in it is strictly
prohibited and may be unlawful. If you have received this communication in
error please return it to the sender.
This message has been scanned by Symantec Enterprise AV Version 9.0 prior to
dispatch.
The views of the author may not necessarily reflect those of the Company.
Any opinions or other information in this message that do not relate to the
official business of the Company are neither given nor endorsed by it.
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|