Re: yesterday's day of week

From: Date: Sun, 18 Aug 2002 05:29:40 +0000
Subject: Re: yesterday's day of week
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113107@lists.php.net to get a copy of this message
Get the current timestamp and subtract a day's worth of seconds. date('D', time() - 24 * 60 * 60); Justin "Kenton Letkeman" <letkk@sk.sympatico.ca> wrote in message news:NLEILOPPMAJCDLLLLPKKKEBGCAAA.letkk@sk.sympatico.ca... > 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 documentation on this. >

« previous php.general (#113107) next »