check active dates common function
Merge pull request #1 from Lithefire/utils

check active dates common function