Rock.ExtensionMethods.TotalMonths C# (CSharp) Méthode

TotalMonths() public static méthode

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