Widgets > wijdatepager > Set the First Day of the Week |
The wijdatepager widget allows you to set first day of the week (from 0 to 6). For example, Sunday is 0, Monday is 1, and so on.. By default, the firstDayOfWeek option is set to 0 (Sunday).
Complete the following steps to set the first day of the week:
<body>
tags of the page, just after @RenderBody():<div id="datepager"></div>
This markup will add content for a datepager widget to the page. In the next step, you'll initialize the datepager.
</div>
tag you added in the previous step, enter the following jQuery script to initialize the wijdatepager widget and set the selectedDate option:
<script type="text/javascript">
$("#datepager").wijdatepager({ firstDayOfWeek: 1 });
</script>
At run time the first day of the week will appear to be Monday.
What You've Accomplished
Press F5 to run the application, and notice that the first day of the week will appear to be Monday.