add functionality for search by date