int tianshu=DateTime.DaysInMonth(DateTime.Today.Year,DateTime.Today.Month);
DateTime.DaysInMonth(参数1,参数2),此方法获取某月的天数,参数1表示那一年,参数2表示该年的那一月