RE: [PHP] php dateadd function?

From: Date: Fri, 30 Apr 2004 12:44:44 +0000
Subject: RE: [PHP] php dateadd function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183455@lists.php.net to get a copy of this message
Hi Mike, I actually changed the return statement to return the date in a format that is different from the mktime format, so that would explain it. thanx... -----Original Message----- From: Ford, Mike [LSS] [mailto:M.Ford@leedsmet.ac.uk] Sent: Thursday, April 15, 2004 2:18 PM To: 'binc2@ctech.ac.za'; Php-General@Lists.Php.Net Subject: RE: [PHP] php dateadd function? On 30 April 2004 13:23, Angelo Zanetti wrote: > Hi all, > > I have found this code that is supposedly meant to be used > for a dateadd > function. I only need it for the adding of days, my problem is that it > doesnt validate when adding days at the end of the month. eg: > > march 31 and the I add 2 days is meant to return april 2. > But it returns > March 33. Have you actually *tried* it? Because that's not what this code does. (Take a look at http://www.php.net/mktime for why not.) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -------------------------------------------------------------------- Disclaimer This e-mail transmission contains confidential information, which is the property of the sender. The information in this e-mail or attachments thereto is intended for the attention and use only of the addressee. Should you have received this e-mail in error, please delete and destroy it and any attachments thereto immediately. Under no circumstances will the Cape Technikon or the sender of this e-mail be liable to any party for any direct, indirect, special or other consequential damages for any use of this e-mail. For the detailed e-mail disclaimer please refer to http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

« previous php.general (#183455) next »