ASP.NET FirstDayOfWeek Property
Definition and Usage
The FirstDayOfWeek property is used to specify which day is the first day of the week 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:
|
Example
The following example shows a calendar where Wednesday is set as the first day of the week:
<form runat="server"> <asp:Calendar id="cal1" runat="server" FirstDayOfWeek="Wednesday" /> </form>
Example
- Set FirstDayOfWeek for Calendar Control