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
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
2 matches
Mail list logo