On Wed, 21 Nov 2001 09:31:33 +0200, [EMAIL PROTECTED]
(Mindhunter) wrote:

>I am reading a date from an input in format 'DD-MM-YYYY' ex. 10-11-2001.
>Now I want to add 3 months to the date.  I have tested mktime and strftime
>etc and no matter what I do I get the year as 1970.  (Systemdate works
>fine).  How would I go about adding 3 months to a date in that format?

Though not the most elegant solution by far ..

You could explode the data  the increment the second element of the
array.  If gt 12 subtract 12 and increment the year ..

Sorry .. the date functions still get me.

DSig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to