Aqueduct.Extensions.Dates.Diff C# (CSharp) Method

Diff() public static method

Diffs the specified date.
public static Diff ( this dateOne, System.DateTime dateTwo ) : System.TimeSpan
dateOne this The date one.
dateTwo System.DateTime The date two.
return System.TimeSpan
        public static TimeSpan Diff(this DateTime dateOne, DateTime dateTwo)
        {
            TimeSpan t = dateOne.Subtract(dateTwo);
            return t;
        }