In PHP you can get the number of week with 'date('W');' and it will return ISO-8601 week number of year

Now how I can get the days of an specific week and the month(s) ?

Update: For example I know 'Monday the 12th week of 2011' and want to get '31st March'


do you mean something like input:date (1/1/2011) output: sunday ?

Written by fingerman

@fingerman: I have updated the question.

Written by Omeid Herat

Do you have year information?

Written by afuzzyllama

@afuzzyllama, yes. :)

Written by Omeid Herat

possible duplicate of Calculating days of week given a week number

Written by ircmaxell

@ircmaxell, that question didn't asked on an specific language.

Written by Omeid Herat

Accepted Answer

For days in a month you can use cal_days_in_month and for days in a specified week you can check out the following question: Calculating days of week given a week number

This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the community.
It is licensed under cc-wiki