public static DateInfo AddQuarters(this DateInfo d, int quarters) => d.AddMonths(quarters * 3);
Exemple #2
0
 /// <summary>
 /// Add one month<br />
 /// 加一个月
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public static DateInfo AddMonth(this DateInfo d) => d.AddMonths(1);