find next/prev visit by datetime. hope it works.