Loop through interval of 5 minutes between two dates
Posted on 2010-09-08
I have a start date and end date. Let's say 08:15 and 17:00
I need to loop through the time between these two dates, by 5 minutes interval.
So the loop should give in this case:
(any dates like 8:15 should be 0-padded to have 08:15)
(the start date and end date are multiple of 5, I will never have something like 08:13)