Re: Date Increment Problem

From: Date: Wed, 30 Oct 2002 11:11:03 +0000
Subject: Re: Date Increment Problem
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16623@lists.php.net to get a copy of this message
You will need to add the seconds that are in 3 days to the current timestamp.... Try the following: $RegisterDate=date("m/d/y", time()); $ExpireDate=date("m/d/y", time()+4320); "Raheel Hussain" <raheelphp@yahoo.com> wrote in message news:20021030110432.9579.qmail@web21202.mail.yahoo.com... > > hi, I m a newbie programmer, may b solve to this prob. is a cheap thing, but i cant get solution of it. > > i have two variables > $RegisterDate, and $ExpireDate > > what I want to do is the the $RegisterDate will be taken from the system. > but the $ExpireDate will be three days after the $RegisterDate, > > i m doing this in the following way, but having problems, i cant find the way to increment the data for after three days > > $RegisterDate=date("m/d/y"); > $ExpireDate=$RegisterDate + 3 //creating problem, > > if the register date is 10/29/01 then the expire date should be 11/2/02. > > plz help > > > > --------------------------------- > Do you Yahoo!? > HotJobs - Search new jobs daily now

« previous php.windows (#16623) next »