here's a thought:
-
// using strtotime() you can turn your date into a unixtimestamp. e.g.
$unixTimeStamp = strtotime('2003-10-19');
// using getdate($unixTimeStamp) you can get the consituent parts of the
// date. e.g.
$dateParts = getdate($unixTimeStamp);
// then create a new
From: merlin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 2:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Adding one month to a given date
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
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
3 matches
Mail list logo