Preparing for searching with date