note 56959 rejected from function.date by jacques

From: Date: Tue, 20 Sep 2005 13:45:37 +0000
Subject: note 56959 rejected from function.date by jacques
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-95479@lists.php.net to get a copy of this message
Note Submitter: liam at sunwise dot co dot uk ---- How do you add 14 days on to a date I have been trying lots of possiblitys but with no luck. Yes it could be as easy as: <?php $date = date("d M Y"); $date_final = $date + 14; echo $date_final; ?> But that will only add the days and scrub out the month and year. I would like it in that format but if numbers is easier then so be it. Problem comes when the date is 24 September 2005 and the bill is due in 14 days on the 4 October 2005. The date seems to only reply with "38" which we all know is an invalid day! So how could the date be added including the months and year if near december?! Any ideas Liam

« previous php.notes (#95479) next »