System.TimeUtils.IsSameMonthAs C# (CSharp) Method

IsSameMonthAs() public static method

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
return bool
	    public static bool IsSameMonthAs(this DateTime date, DateTime otherDate)
	    {
	        return date.Year == otherDate.Year && date.Month == otherDate.Month;
	    }