Add support for datetime filter

Here's the pull request for the datetime filter functionality. I couldn't attach it to the previous issue #84