//每月第一天 var beginTime=DateTime.Now.AddDays(1 - DateTime.Now.Day); //每月最后一天 var endTime=DateTime.Now.AddDays(1 - DateTime.Now.Day).AddMonths(1).AddDays(-1);
时间: 2024-10-11 01:39:18
//每月第一天 var beginTime=DateTime.Now.AddDays(1 - DateTime.Now.Day); //每月最后一天 var endTime=DateTime.Now.AddDays(1 - DateTime.Now.Day).AddMonths(1).AddDays(-1);