ASP.NET Calendar FirstDayOfWeekProperty


Calendar 控件Calendar Control

Definition and Usage

The FirstDayOfWeek property is used to specify which day of the week is the first day in the calendar.

Syntax

<asp:Calendar FirstDayOfWeek="day" runat="server" />

Property Description
day Specifies the first day of the week in the calendar.

Possible values:

  • Default
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday


Example

The following example shows a calendar in which Wednesday is set as the first day of the week:

<form runat="server">
<asp:Calendar id="cal1" runat="server" FirstDayOfWeek="Wednesday" />
</form>

Demo Example »

Calendar 控件Calendar Control Other Extensions