Re: [PHP] yesterday's day of week

2002-08-17 Thread Justin French
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

Re: [PHP] yesterday's day of week

2002-08-17 Thread Jason Wong
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 "-

[PHP] yesterday's day of week

2002-08-17 Thread Kenton Letkeman
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