make search work with date as well