某年某月有几天

int allmonthday=DateTime.DaysInMonth(2004,9);
原文地址:https://www.cnblogs.com/mmmhhhlll/p/47740.html