get date from weekday and weeknumber.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
l_kris06
Forum Newbie
Posts: 3
Joined: Tue Feb 05, 2008 5:58 am

get date from weekday and weeknumber.

Post by l_kris06 »

Hi all,

I am generating a recurring instance of an .ics for outlook recurring meeting.
I am stuck in a case where i need to get the next date from a week number and a weekday.

for instance,

curDate = 22/12/2008
weekDay = Wednesday
weekNumber = 5

I need 31/12/2008 as return value.

can somebody help? i think i am stuck.

Rgds,
Kris
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: get date from weekday and weeknumber.

Post by jaoudestudios »

Have a look at the date functions in php, you can do it with that. I cant remember exactly which one, but if you look at one, they all link to each other.

Look at...
date()
mktime() etc
Post Reply