Implemented date filtering
Updated tests to reflect date filtering