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 ?
John Holmes <[EMAIL PROTECTED]> wrote in message
> 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...
> ---John Holmes...
> > -----Original Message-----
> > From: Rosen [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, June 15, 2002 7:55 PM
> > To: [EMAIL PROTECTED]
> > 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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php