NextDate testing code