DateTime beginMDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime endMDate = beginMDate.AddMonths(1).AddDays(-1);
一个月的第一天和最后一天
最新推荐文章于 2021-02-12 23:20:23 发布
DateTime beginMDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime endMDate = beginMDate.AddMonths(1).AddDays(-1);