DateTime dt = DateTime.Now; //获取系统当前时间
DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //获取一周的开始日期
DateTime endweek = startWeek.AddDays(6); //获取本周星期天日期
DateTime dt = DateTime.Now; //获取系统当前时间
DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //获取一周的开始日期
DateTime endweek = startWeek.AddDays(6); //获取本周星期天日期