Re: Date Subtraction
| From: | Jason Wong | Date: | Wed, 21 Aug 2002 18:59:37 +0000 |
| Subject: | Re: Date Subtraction | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21293@lists.php.net to get a copy of this message | ||
On Thursday 22 August 2002 02:23, Manoj Japher wrote:
> hi,
> Is there any way I can get previous day's date, like we get
> current
> date by using getdate() or date() function. I mean is there some
> in-built function in PHP which can subtract date to give me
> yesterday's date.
> I am currently calculating it using some code, which I have
> written
> and it is very tirng and recursive to check for each possible
> case.
>
> If someone has solved this before pls let me know.
mktime()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
The person who makes no mistakes does not usually make anything.
*/