[prev in list] [next in list] [prev in thread] [next in thread]
List: php-windows
Subject: [PHP-WIN] Re: Date Increment Problem
From: 195.7.1.18
Date: 2002-10-30 11:11:03
[Download RAW message or body]
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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic