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;
	    }