JQuery UI datepicker ( start weeks from Monday)

JqueryJquery UiJquery Ui-Datepicker

Jquery Problem Overview


I am using jQuery UI datepicker, I know I can customize this datepicker in this way:

$("#reserve_date").datepicker({
            beforeShowDay: no_disabled_Days
});

currently, my datapicker calendar start weeks from Sunday, I would like it starts weeks from Monday, how to do??

Jquery Solutions


Solution 1 - Jquery

$( ".selector" ).datepicker({ firstDay: 1 });

jQuery UI Reference; see the link for a slightly more detailed explanation.

For inline reference:

Sunday     0
Monday     1
Tuesday    2
Wednesday  3
Thursday   4
Friday     5
Saturday   6

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMellonView Question on Stackoverflow
Solution 1 - JqueryDavid ThomasView Answer on Stackoverflow