date search fix

This resolves #1570