var start = moment("2016-04-13 12:00:00"), end = moment("2016-04-13 18:00:00"); for (var target = start.clone();target.isBefore(end);target.add(30, "minutes")) { console.log(target.format("HH:mm")); }
12:00 12:30 13:00 13:30 14:00 14:30 15:00 15:30 16:00 16:30 17:00 17:30