Problem with date('w')

From: Date: Mon, 25 Aug 2003 09:41:10 +0000
Subject: Problem with date('w')
Groups: php.general 
Request: Send a blank email to php-general+get-160655@lists.php.net to get a copy of this message
Hi I have a problem with the date function <? $theday = date("Y-m-d", time()); echo date((w), $theday); ?> should print 1 if today is monday, 2 if today is tuesday ... though it's printing 4 and today is monday ! any idea ?

« previous php.general (#160655) next »