Date calculations
| From: | Real GM Webmaster | Date: | Tue, 12 Sep 2000 08:12:08 +0000 |
| Subject: | Date calculations | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16282@lists.php.net to get a copy of this message | ||
Hi,
I am still relatively new to PHP and I am teaching myself as I go.
One thing that does have me a little stuck that I am sure others will find to be extremely basic is
performing calcuations on dates.
What I am trying to do is take the current date then try to get the date from four days back. For
instance, today is the 12th September, I want the system to look at this, subtract four days off,
and get the 8th September in the format 2000-09-08 [date ("y-m-d)].
Can someone please point me in the right direction as to how to do this?
Thanks,
Michael
Webmaster
Real General Manager, Inc.
http://www.realgm.com