Change the first day of the week

19 Dec 20221 minute to read

The Calendar provides an option to change the first day of the week by using the firstDayOfWeek property. Generally, the day of the week starts from 0 (Sunday) and ends with 6 (Saturday).

NOTE

By default, the first day of the week is culture specific.

The following example shows the Calendar with Tuesday as the first day of the week.

@Html.EJS().Calendar("element").FirstDayOfWeek(2).Render()

NOTE

View Sample in GitHub.