ASP.NET Calendar DayNameFormatProperties


Calendar 控件Calendar Control

Definition and Usage

The DayNameFormat property is used to set the format of the names of the days of the week in the calendar.

Syntax

<asp:Calendar DayNameFormat="format" runat="server" />

Properties Description
format Specifies the display format of the day names.

Possible values:

  • FirstLetter
  • FirstTwoLetters
  • Full
  • Short


Example

The following example shows a calendar with the full day name format:

<form runat="server">
<asp:Calendar id="cal1" runat="server" DayNameFormat="Full" />
</form>

Show example »

Calendar 控件Calendar Control Other Extensions