C# 获取月份的天数的方法

DateTime dateTime = new DateTime(2023, 8, 17);

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

猜你喜欢

转载自blog.csdn.net/m0_53377876/article/details/132357891