月初的第一天:
System.DateTime.Today.AddDays(1 - System.DateTime.Today.Day);
月末的最后一天 :
System.DateTime.Now.AddDays(1 - System.DateTime.Now.Day).AddMonths(1).AddDays(-1);
时间: 2024-09-19 09:26:48
月初的第一天:
System.DateTime.Today.AddDays(1 - System.DateTime.Today.Day);
月末的最后一天 :
System.DateTime.Now.AddDays(1 - System.DateTime.Now.Day).AddMonths(1).AddDays(-1);