System.TimeUtils.IsSameMonthAs C# (CSharp) Метод

IsSameMonthAs() публичный статический Метод

Checks if both dates are days of the same month and year
public static IsSameMonthAs ( this date, System.DateTime otherDate ) : bool
date this
otherDate System.DateTime
Результат bool
	    public static bool IsSameMonthAs(this DateTime date, DateTime otherDate)
	    {
	        return date.Year == otherDate.Year && date.Month == otherDate.Month;
	    }