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