refactored date search method