I was request to create a list with the possible delivery hours for a restaurante using two time variables in javascript, for example:
-Opening time: 08:00 AM -Closing time: 04:00 PM
The list should be something like: 08:00,09:00,10:00,11:00,...,04:00.
But I can't really figure it out, if someone could explain me an algorithm for that or maybe the logic I should follow I would really aprecciate it.
Aucun commentaire:
Enregistrer un commentaire