I need to extract all Mondays within a specific date range.
let start = moment(this.absence.FromDate);
let end = moment(this.absence.ToDate);
The user has the option to deactivate certain weekdays during this period by setting booleans.
monday = true;
tuesday = false;
...
To achieve this, I am trying to create a function that collects all Mondays occurring within the date range provided.
Although I've searched on various platforms like stack overflow, I have only come across solutions for retrieving Mondays in a whole month, rather than a specified date range.