The algorithm needs to accept a date and then get values for each day from Monday until the date inputted.

Edit:

In a database I have values stored for every day of the week. I want to be able to accept a date parameter and then retrieve a list of values from Monday of the week that date parameter falls in until the date parameter. e.g 5th May 2011. Retrieve values for each day from Monday 2nd May upto Thursday 5th May.