摘要:
方法一:int days = System.Threading.Thread.CurrentThread.CurrentUICulture.Calendar.GetDaysInMonth(DateTime.Now.Year ,DateTime.Now.Month);方法二:DateTime dtNow = DateTime.Today; int days = dtNow .AddDays(1 - dtNow .Day).AddMonths(1).AddDays(-1).Day;方法三:DateTime dtNow = DateTime.Now; int days = DateTime.Days 阅读全文