一个月的第一天和最后一天

      DateTime beginMDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
      DateTime endMDate = beginMDate.AddMonths(1).AddDays(-1);

原文地址:https://www.cnblogs.com/zgaspnet/p/2305256.html