Page 1 of 1

get date from weekday and weeknumber.

Posted: Mon Dec 22, 2008 8:48 am
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

Re: get date from weekday and weeknumber.

Posted: Mon Dec 22, 2008 1:41 pm
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