I need to get the first day and the last day of the week from some strings that have the format like this:

'201118' 

where 2011 is the year and 18 is the number of the week. Knowing the number of the week, how do I get the first and the last day of the week?

How do I do this?