Get the current timestamp and subtract a day's worth of seconds. date('D', time() - 24 * 60 * 60);
Justin "Kenton Letkeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php