clean and improve search logic for dates, re #1637
clean and improve search logic for dates, re #1637

archesproject/arches,cvast/arches,archesproject/arches,archesproject/arches,cvast/arches,cvast/arches,cvast/arches,archesproject/arches