note 4784 modified in date by ronabop
| From: | ronabop@php.net | Date: | Fri, 01 Sep 2000 04:29:42 +0000 |
| Subject: | note 4784 modified in date by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3875@lists.php.net to get a copy of this message | ||
To get yesterdays date use:
date("<your format string>",time() - 86400);
//(There are 86400 seconds in one day: 24 * 60 * 60)
For tomorrow use +, and for X days in the future/past simply use X times 86400.
http://www.php.net/manual/function.date.php