Even with dates that Gramps understands, that particular question is tricky. See this thread.
But, if you use the text-based dates, then I think all you would need to do is code a (relatively) simple custom filter rule that would look for dates (as text strings) that are “between” two given input strings.
In fact, I think such a rule for normal dates would help with the issue in the thread linked above.