RE: [PHP] php dateadd function?

From: Date: Thu, 15 Apr 2004 12:18:16 +0000
Subject: RE: [PHP] php dateadd function?
Groups: php.general 
Request: Send a blank email to php-general+get-183452@lists.php.net to get a copy of this message
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

« previous php.general (#183452) next »