ASP.NET TitleFormat Property

Definition and Usage

The TitleFormat property is used to set or return how the calendar title (format) is displayed.

Syntax

<asp:Calendar TitleFormat="mode" runat="server" />
Property Description
mode

Specifies the format of the calendar title.

Possible values:

  • Month
  • MonthYear (default)

Example

The following example sets the TitleFormat to display the month:

<form runat="server">
<asp:Calendar id="cal1" runat="server">
TitleFormat="Month" />
</form>

Example

Set the TitleFormat of Calendar Control to Display the Month