linq 查询本周 本月 的数据

(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.DayOfWeek)))//本周
(n => n.date > DateTime.Now.AddDays(-Convert.ToInt32(DateTime.Now.Date.Day)))//本月


猜你喜欢

转载自blog.csdn.net/u011522118/article/details/35236565