摘要:
public enum DateInterval{ Second,Minute,Hour,Day,Week,Month,Quarter,Year}public static long DateDiff(DateInterval Interval,System.DateTime StartDate,System.DateTme EndDate){ long lngDateDiffValue=0; System.TimeSpan TS=new System.TimeSpan(EndDate.Ticks-StartDate.Ticks); switch(Interval){ cas... 阅读全文