提问
C# 如何获取下个月
回答
int year=2022;
int month=10;
new DateTime(year, trace.Month, 1, 0, 0, 0, 0).AddMonths(1);
千万不要,因为在month=12时直接报错
int year=2022;
int month=12;
new DateTime(trace.Year, trace.Month + 1, 1, 0, 0, 0, 0),
标签:trace,C#,下个月,month,获取,int,year
From: https://www.cnblogs.com/wuhailong/p/17314992.html