update search to use only encoded date