1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 4.00 out of 5)

I was working on a weekly events module ..
At some point I need to be able to get a list of week days by providing only on day, for example if I provide today date I expect the whole week contains today regardless to the current month or years ..

The following example shows how we can do that, with some extra features ..

source code available via flash context menu