Latest web development tutorials

ASP.NET Calendar FirstDayOfWeek property

Calendar Control Calendar Control

Definition and Usage

FirstDayOfWeek attribute is used to specify the calendar day is the first day of the week.

grammar

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

属性 描述
day 规定日历中周的第一天。

可能的值:

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


Examples

The following example shows Wednesday is set to the first day of the calendar week:

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

The demonstration >>

Calendar Control Calendar Control