FW: [PHP] Date() finding yesterday

2006-05-22 Thread Jef Sullivan
day in the above line of code. Good luck, Jef -Original Message- From: Scott Hurring [mailto:[EMAIL PROTECTED] Sent: Sunday, May 21, 2006 12:18 PM To: Rabin Vincent; php-general@lists.php.net Subject: Re: [PHP] Date() finding yesterday mktime also works: http://php.net/mktime: date(

Re: [PHP] Date() finding yesterday

2006-05-21 Thread Scott Hurring
mktime also works: http://php.net/mktime: date("Y-m-d", mktime( ... )) On 5/21/06, Rabin Vincent <[EMAIL PROTECTED]> wrote: On 5/21/06, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > I cannot seem to get this right. How can I produce yesterday? > > $today = date("Y-m-d"); > $yesterday = dat

Re: [PHP] Date() finding yesterday

2006-05-20 Thread Rabin Vincent
On 5/21/06, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: 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 :) ... Use

[PHP] Date() finding yesterday

2006-05-20 Thread John Taylor-Johnston
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 -- PHP General Mailing List (http://www.php.net/) To