Hi guys,
Thanks for the answers.
I figured it out using this topic as inspiration : [HOW-TO] Create a custom Calendar using repeating group
Here’s the JS code I wrote :
function getDaysInMonth(mStart,yStart,dStart,mEnd,dEnd) {
var month = mStart-1;
var a=new Date(yStart,month,dStart),D=;
for (;month<mEnd-1;){
for(;a.getMonth()===month;){
D.push(new Date(a)),a.setDate(a.getDate()+1);
}
if (month==11&mEnd!=12) {
a.setYear(yStart+1);
month=0;
a.setMonth(month);
}else{
month++;
a.setMonth(month);
a.setDate(1);
}
}
console.log(a);
for(;a.getDate()<=dEnd;){
D.push(new Date(a)),a.setDate(a.getDate()+1);
}
return D;
}
I hope it will help you as well!