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