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:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 2:18 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
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

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

Reply via email to