RE: [PHP] How to find future date?

From: Date: Thu, 31 Oct 2002 00:39:26 +0000
Subject: RE: [PHP] How to find future date?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122158@lists.php.net to get a copy of this message
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: php-general@lists.php.net > 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; php-general@lists.php.net > Subject: Re: [PHP] How to find future date? > > > Take a look at mktime() > > www.php.net/mktime > > ---John Holmes... > > ----- Original Message ----- > From: "ppf" <ppf2u@yahoo.com> > To: <php-general@lists.php.net> > 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

« previous php.general (#122158) next »