data() {
return {
ArrBookingHourd: [{ date: [], hours: [] }],
}
},
const startTime = new Date(arrTime[0]);
startTime.setHours(startTime.getHours() - 3);
console.log('ЗАЕЗД', startTime);
this.ArrBookingHourd.date.push(startTime.toDateString())
for (let j = startTime.getHours(); j <= endTime.getHours() + 1; j++) {
console.log(j)
this.ArrBookingHourd.hours.push(j)
}
var hours = [];
for (let j = startTime.getHours(); j <= endTime.getHours() + 1; j++) {
hours.push(j);
}
this.ArrBookingHourd.date.push({
date: startTime.toDateString(),
hours: hours
});