Fix before and after and in date search, and display of it for previous queries.