int days = DateTime.DaysInMonth ( 2009, 9 );

int days = DateTime.DaysInMonth ( DateTime.Now.Year, DateTime.Now.Month);

相关文章: