statement to add date search