Re: Problem with date('w')

From: Date: Mon, 25 Aug 2003 12:24:32 +0000
Subject: Re: Problem with date('w')
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160661@lists.php.net to get a copy of this message
Hi, Try: <? echo date ("w"); ?> Danielle Beoi 7308 wrote: > 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 (#160661) next »