1:获取指定月份的天数
int Days = DateTime.DaysInMonth(Year, Month);//Year指定的年份,Month指定的月份
2:当前月份的天数
int idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month);
int Days = DateTime.DaysInMonth(Year, Month);//Year指定的年份,Month指定的月份
2:当前月份的天数
int idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month);
JoyBoy