一个月的第一天和最后一天
DateTime beginMDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime endMDate = beginMDate.AddMonths(1).AddDays(-1);
DateTime beginMDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
DateTime endMDate = beginMDate.AddMonths(1).AddDays(-1);