initial commit
This commit is contained in:
commit
880cae624a
906 changed files with 196528 additions and 0 deletions
12
assets/js/calendar.js
Normal file
12
assets/js/calendar.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
dayjs.locale("fr");
|
||||
function getDaysInMonth(month, year) {
|
||||
const daysInMonth = dayjs(new Date(year, month, 0)).daysInMonth();
|
||||
const days = [];
|
||||
|
||||
for (let day = 1; day <= daysInMonth; day++) {
|
||||
const currentDay = dayjs(new Date(year, month - 1, day));
|
||||
days.push(currentDay.format("DD-MM-YYYY"));
|
||||
}
|
||||
|
||||
return days;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue