111,098
社区成员




int lastDay = DateTime.DaysInMonth (DateTime.Now.Year,DateTime.Now.Month);//该日期所在月份的最后一天
DateTime first = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);//该日期所在月份的第一天
Console.WriteLine("The Lastday is {0} and the firstday is {1}", lastDay, first);
Console.ReadKey();