Separate date and time and for loop each date and time

its working!!

is there a better way if condition met and i want to Break the whole loop. The IF condition is met in the inner loop. How can i break for the outer for loop too?