Adds a filter/field for datetime range checking.

This time I added the tests but I don't know if they are enough (copy/paste from RangeFilter tests).