public static int GetSubMonth(DateTime SpecifyATime) { int m1 = DateTime.Now.Year * 12 + DateTime.Now.Month; int m2 = WorkBeginDate.Year * 12 + SpecifyATime.Month; return m1 - m2; }
时间: 2024-10-10 13:01:06
public static int GetSubMonth(DateTime SpecifyATime) { int m1 = DateTime.Now.Year * 12 + DateTime.Now.Month; int m2 = WorkBeginDate.Year * 12 + SpecifyATime.Month; return m1 - m2; }