public static DateTime LastMonday(this DateTime from) { var mondayOfWeek = from.Date.AddDays(-(int)from.DayOfWeek + 1); return mondayOfWeek; }