Re: Determine week

From: Date: Sun, 16 Jun 2002 10:11:50 +0000
Subject: Re: Determine week
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-102387@lists.php.net to get a copy of this message
Thanks, but I think you didn't understand me. I have the number of week in a year ( some number of week, not current week ) and I must determite start & end date of given week. Can you help me with some ides ? Thanks, Rosen John Holmes <holmes072000@charter.net> wrote in message news:006101c214d9$dc9423f0$b402a8c0@mango... > You'll need a combination of date() and mktime(). > > I'm too lazy to write the exact code right now, but date('w') will > return the day of the week, 0 = Sunday, 6 = Saturday. Then use mktime() > to subtract the number returned from date('w') from the days component, > and you'll have the start of the week. 6 minus the result of date('w'), > added to the day component of mktime(), will give you the end... > > HTH, > ---John Holmes... > > > > -----Original Message----- > > From: Rosen [mailto:rosen@pernikinfo.com] > > Sent: Saturday, June 15, 2002 7:55 PM > > To: php-general@lists.php.net > > Subject: [PHP] Determine week > > > > Hi, > > how can I determine dates (start & end ) in one week. > > I.e. 30th week is between 22.07.2002 and 28.07.2002 . > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#102387) next »