标签:
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; }
C#指定时间和当前时间的相差的月份
原文地址:http://www.cnblogs.com/ericli-ericli/p/4973779.html