For date searches changed to before and after