Rock.ExtensionMethods.TotalMonths C# (CSharp) Method

TotalMonths() public static method

The total months.
public static TotalMonths ( this end, System.DateTime start ) : int
end this The end.
start System.DateTime The start.
return int
        public static int TotalMonths( this DateTime end, DateTime start )
        {
            return ( end.Year * 12 + end.Month ) - ( start.Year * 12 + start.Month );
        }