calendarHTML-Javascript
calendarHTML-Javascript copied to clipboard
How to start Week from Monday?
You should move https://github.com/niinpatel/calendarHTML-Javascript/blob/303d2433edc6d26ed6cebcf3680820c4cd487b0e/index.html#L20 after Saturday and replace https://github.com/niinpatel/calendarHTML-Javascript/blob/303d2433edc6d26ed6cebcf3680820c4cd487b0e/scripts.js#L33 with
let firstDay = (((new Date(year, month)).getDay() - 1) + 7) % 7;
For a live example of this you can look at https://verhuurkalender.hubovra.nl/
Thanks a lot @fantostisch It saves my day.
You will just want to change this part:

Here, you just change the numbers in the loops as shown in the screenshot. Also, do not forget to change that number inside if() condition.
Then, you will want to change this in the HTML:

So what I did was just changing the order of th tags.
I hope I helped you out! In case I did not, you can always mention me here in the discussion and I will definitely help you out!