1:获取指定月份的天数 int Days = DateTime.DaysInMonth(Year, Month);//Year指定的年份,Month指定的月份 2:当前月份的天数int idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month); 相关文章: 2022-12-23 2022-12-23 2021-11-29 2022-12-23 2022-12-23 2022-12-23 2022-01-24 2022-12-23