improve treatment of dates in searches