Latest web development tutorials

ASP.NET Calendar DayNameFormat property

Calendar Control Calendar Control

Definition and Usage

DayNameFormat property is used to format the name of the calendar week of each day.

grammar

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

属性 描述
format 规定天的名称的显示格式。

可能的值:

  • FirstLetter
  • FirstTwoLetters
  • Full
  • Short


Examples

The following example shows the format of the name day of the calendar complete with:

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

The demonstration >>

Calendar Control Calendar Control