DateTime FirstDay = DateTime.Now.AddDays(-DateTime.Now.Day + 1).AddHours(-DateTime.Now.Hour).AddMinutes(-DateTime.Now.Minute).AddSeconds(-DateTime.Now.Second); DateTime LastDay = DateTime.Now.AddMonths(1).AddDays(-DateTime.Now.AddMonths(1).AddDays(-1).Day).AddHours(-DateTime.Now.Hour).AddMinutes(-DateTime.Now.Minute).AddSeconds(-DateTime.Now.Second);
标签:AddMinutes,AddHours,第一天,c#,AddDays,DateTime,至下,Now From: https://www.cnblogs.com/lixia0604/p/17362586.html