search works ina a given within a given date