Re: Date Problem

From: Date: Wed, 21 Nov 2001 15:02:57 +0000
Subject: Re: Date Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75387@lists.php.net to get a copy of this message
On Wed, 21 Nov 2001 09:31:33 +0200, MindHunter@mailbox.co.za (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

« previous php.general (#75387) next »