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

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

posted on 2011-12-28 18:05  张扬个性,敢为天下先  阅读(486)  评论(2编辑  收藏  举报