The following code finds the date of the monday in the current week:
DateTime mondayThisWeek = DateTime.Now; while (mondayThisWeek.DayOfWeek != DayOfWeek.Monday) { mondayThisWeek = mondayThisWeek.AddDays(-1); }
The following code finds the date of the monday in the current week:
DateTime mondayThisWeek = DateTime.Now; while (mondayThisWeek.DayOfWeek != DayOfWeek.Monday) { mondayThisWeek = mondayThisWeek.AddDays(-1); }