Adding one month to a given date
| From: | merlin | Date: | Mon, 02 Feb 2004 22:24:00 +0000 |
| Subject: | Adding one month to a given date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176630@lists.php.net to get a copy of this message | ||
Hi there,
I am trying to add one month to a given date. Somehow I am lost inbetween mktime, date and unix timestamps ;-(
Can anybody give me a hint on that?
The date format I do have is: 2003-10-19
Guess this does not work:
$ptm = '2003-10-19';
$ptm = 1 + mktime('YmdHis',$ptm);
Thanx for any help,
Merlin