Added a search_by_date function