Version

Set a Custom Day as the First Day of the Week

WebMonthCalendar™ allows you to set any day as the first day of the week. This can be done by simply setting the control’s FirstDayOfWeek property to one of the following FirstDayOfWeek enumeration members:

  • Sunday — Indicates that the first day of the week is Sunday.

  • Monday — Indicates that the first day of the week is Monday.

  • Tuesday — Indicates that the first day of the week is Tuesday.

  • Wednesday — Indicates that the first day of the week is Wednesday.

  • Thursday — Indicates that the first day of the week is Thursday.

  • Friday — Indicates that the first day of the week is Friday.

  • Saturday — Indicates that the first day of the week is Saturday.

  • Default — Indicates that the first day of the week is specified by the system settings.

By default, this property is set to Default. You can set the FirstDayOfWeek property either by using the Microsoft® Visual Studio® Property Window or by using the following code:

In Visual Basic:

 WebMonthCalendar1.FirstDayOfWeek = FirstDayOfWeek.Monday

In C#:

 WebMonthCalendar1.FirstDayOfWeek = FirstDayOfWeek.Monday;
WebMonthCalendar Set a Custom Day as the First Day of the Week 01.png