Re: Adding one month to a given date

From: Date: Tue, 03 Feb 2004 11:44:49 +0000
Subject: Re: Adding one month to a given date
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176669@lists.php.net to get a copy of this message
Use mysql's Date Functions. works like magic :) Good Luck, Ammar "Merlin" <news.groups@web.de> wrote in message news:20040202222359.32433.qmail@pb1.pair.com... > 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

« previous php.general (#176669) next »