public static IsInRangeWithinYear ( this year, System.DateTime start, System.DateTime end ) : bool | ||
year | this | |
start | System.DateTime | |
end | System.DateTime | |
return | bool |
public static bool IsInRangeWithinYear(this DateTime year, DateTime start, DateTime end)
{
return start.DayOfYear <= year.DayOfYear && year.DayOfYear <= end.DayOfYear;
}