Use strtotime() like someone else suggested. It's easier, but mktime
does work. If you read the whole manual page and comments, I'm sure
you'll see an example.

$date = strtotime("now + X days");

---John Holmes...

> -----Original Message-----
> From: scott [mailto:scott@;scottincz.com]
> Sent: Wednesday, October 30, 2002 5:25 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] How to find future date?
> 
> 
> Thanks
> 
> Can't get it to work, so open to other suggestions.
> Thanks anyway.
> 
> -----Original Message-----
> From: 1LT John W. Holmes [mailto:holmes072000@;charter.net]
> Sent: 30 October 2002 21:16
> To: ppf; [EMAIL PROTECTED]
> Subject: Re: [PHP] How to find future date?
> 
> 
> Take a look at mktime()
> 
> www.php.net/mktime
> 
> ---John Holmes...
> 
> ----- Original Message -----
> From: "ppf" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 30, 2002 4:01 PM
> Subject: [PHP] How to find future date?
> 
> 
> >
> > Hi All:
> > I like to know is there any metrhod to find future
> > date ( for example 15 days from the today [sys date]). Basically i
am
> > looking for a method equivalent to datediff or dateadd in asp. I
hope
> > PHP will have some thing corresponding to this, I will really
> > appricate u r help, thanks in advance
> >   Prad
> >
> > __________________________________________________
> > Do you Yahoo!?
> > HotJobs - Search new jobs daily now
> > http://hotjobs.yahoo.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to