public int GetMonthLastDate(int year, int month)
{
DateTime lastDay = new DateTime(year, month, new System.Globalization.GregorianCalendar().GetDaysInMonth(year,
month));
int Day = lastDay.Day;
return Day;
}
public int GetMonthLastDate(int year, int month)
{
DateTime lastDay = new DateTime(year, month, new System.Globalization.GregorianCalendar().GetDaysInMonth(year,
month));
int Day = lastDay.Day;
return Day;
}
转载于:https://www.cnblogs.com/shuang121/archive/2011/03/03/1969843.html