Is there a way to generate an array of dates starting from today and spanning the next 15 days, excluding Saturdays and Sundays?
For example, if today is 4/5/22, the desired array would look like ['4/5/22', '5/5/22', '6/5/22'.....'19/5/22'].
I have come across some guides that provide future dates only. Can anyone assist me in creating an array with all the required dates?
var dt = new Date();
dt.setDate(dt.getDate() + 3);