System::DateTime::DaysInMonth 方法

DateTime::DaysInMonth method

返回指定年份中指定月份的天数。

static int System::DateTime::DaysInMonth(int year, int month)
ParameterType描述
年份int年份
月份int月份的序数

ReturnValue

天数是指定年份中指定月份的天数

另见