Date Subtraction
| From: | Manoj Japher | Date: | Wed, 21 Aug 2002 18:23:07 +0000 |
| Subject: | Date Subtraction | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21288@lists.php.net to get a copy of this message | ||
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.
Thanks,
Regards,
Manoj
'I have miles to go before I sleep, and promises to keep'