DateTime nowTime = DateTime.Now; #region 获取本周第一天 //星期一为第一天 int weeknow = Convert.ToInt32(nowTime.DayOfWeek); //因为是以星期一为第一天,所以要判断weeknow等于0时,要向前推6天. weeknow = (weeknow == ? ( - ) : (weeknow - )); ) * weeknow; //本周第一天 DateTime FirstDay = nowTime.AddDay