Add date range search, fixes #4654