//计算当前年份的月数的最大天数 int tmpDayNumber = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month); string tmpWeek = DateTime.Now.ToString("yyyy年MM月dd日 星期ddd hh时mm分ss秒", new System.Globalization.CultureInfo("zh-CN"));