(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.DayOfWeek)))//本周
(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.Day)))//本月
linq 查询本周 本月 的数据
最新推荐文章于 2022-05-29 08:59:08 发布
(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.DayOfWeek)))//本周
(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.Day)))//本月