There is a magic little function called strtotime()... it takes just about
any english phrase, and acts on it... there are examples in the manual:
http://www.php.net/manual/en/function.strtotime.php
In this case, I'm guessing you'd want
$yesterday = strtotime('yesterday');
Another approach wo
On Sunday 18 August 2002 09:38, Kenton Letkeman wrote:
> I have been able to get yesterdays date
> eg. $yesterday = date('d')-1; result is "17"
> but am having trouble getting yesterdays day of the week.
> eg. $yesterday = date('D')-1; result is "-1"
> eg. $yesterday = date('l')-1; result is "-
I have been able to get yesterdays date
eg. $yesterday = date('d')-1; result is "17"
but am having trouble getting yesterdays day of the week.
eg. $yesterday = date('D')-1; result is "-1"
eg. $yesterday = date('l')-1; result is "-1"
Is there something I am missing? I cannot find the document
3 matches
Mail list logo