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: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to