Date() finding yesterday
| From: | John Taylor-Johnston | Date: | Sun, 21 May 2006 04:19:52 +0000 |
| Subject: | Date() finding yesterday | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236560@lists.php.net to get a copy of this message | ||
I cannot seem to get this right. How can I produce yesterday?
$today = date("Y-m-d");
$yesterday = date("Y-m-") . date("d")-1;
$yesterday = date("Y-m-d")-1;
$yesterday = date("Y-m-"."d"-1);
I've been looking at the manual :) ...
Thanks,
John