Does anyone have a function to determine if a given date falls on Election Day of the given year?


For example, if I passed 11/5/2018 to the function it would return False. If I passed 1/6/2018 it would return true.

Thanks.