date search working