Date() finding yesterday

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux