RE: [PHP] How to find future date?
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
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
Re: [PHP] How to find future date?
Thank you all both mktime and strtotime () will achive the goal, thank again Prad --- "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > 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 > __ 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
Re: [PHP] How to find future date?
On Thursday 31 October 2002 05:01, ppf wrote: > 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 strtotime() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You are a fluke of the universe; you have no right to be here. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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] 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