Possible Duplicate:
How can I get the DateTime for the start of the week?
I need to get start date of a week based on a input date and period start DayOfWeek. The week may start either from sunday or monday or etc.
//Ger start date based on a date and startdayofweek
GetStartDate(DateTime date, DayOfWeek periodStartDayOfWeek)
{
// return startdateof week
}