Re: Date Problem
| From: | lallous | Date: | Wed, 28 Nov 2001 10:09:46 +0000 |
| Subject: | Re: Date Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75867@lists.php.net to get a copy of this message | ||
you can use the MySql's function:
DATE_ADD(datefield, INTERVAL 3 MONTH)
"Mindhunter" <MindHunter@mailbox.co.za> wrote in message
news:20011121073129.52097.qmail@pb1.pair.com...
> Hi,
>
> 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?
>
> Thanks
> MH
>
>