Re: [PHP] Determine week

2002-06-16 Thread Tom Rogers
Hi Here is a messy solution, but I think it does what you want using strtotime() (well worth looking up in the manual :) "; ?> Tom At 02:55 AM 16/06/2002 +0300, Rosen wrote: >Hi, >how can I determine dates (start & end ) in one week. >I.e. 30th week is between 22.07.2002 and 28.07.2002 . >

Re: [PHP] Determine week

2002-06-16 Thread Rosen
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 <[EMAIL PROTECTED]> wrote in message 006101c214d9$dc9423f

RE: [PHP] Determine week

2002-06-15 Thread John Holmes
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 wee