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
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2018-06-22
  • 2022-12-23
相关资源
相似解决方案