0

Technology: NodeJS. Problem: "how do I prepare the meeting date every odd or even days for the specified period in this way"

Thanks in advance, it would help me a lot if you could give me an example or direction on this.

let create = {
  start_date: "01-02-2023",
  end_date: "01-06-2023",
  start_time: "15:00",
  end_time: "19:00",
  days: "even",
};


let meetings = [
  {
    date: "01-01-2023",
    start__time: "14:00",
    end__time: "16:00",
  },
  {
    date: "03-01-2023",
    start__time: "14:00",
    end__time: "16:00",
  },
  {
    date: "05-01-2023",
    start__time: "14:00",
    end__time: "16:00",
  },
];

I tried some node packages but I couldn't produce the desired result.

vimuth
  • 5,064
  • 33
  • 79
  • 116

0 Answers0