I wanted a simple and quick way to get the start of week and end of week to do some data processing for the week. Here is a simple three line code that can help achieve this.
DateTime dt = DateTime.Now();
DateTime FirstDayofWeek = dt.AddDays(-(int)dt.DayOfWeek);
DateTime LastDayofWeek = FirstDayofWeek.AddDays(6);
Hope it helps, Thanks!!!