Review the code snippet before inserting it on your project.
public DateTime FirstDayWeek(DateTime date) { return date.AddDays(-(double)date.DayOfWeek); }
With from Barcelona