to_date and from_date added to search