ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1Calendar Extender / Apply Date Format to Calendar Title in Month View
In This Topic
    Apply Date Format to Calendar Title in Month View
    In This Topic

    In Month view of C1CalendarExtender, the title is set by using MonthViewTitleFormat property, similar to the Day view, where the calendar title is set by using TitleFormat property.

    The default value of MonthViewTitleFormat property is yyyy. The following image shows the default calendar title in Month view:

    You can also customize the title to show different formats in Month view.

    Applying Date Format to Month view of Calendar in Design view:

    To set initial calendar view in design view, follow these steps:

    1. Select View | Properties window in the Visual Studio menu.
    2. Click the drop-down list at the top of the Properties window and select Panel1_C1CalendarExtender.
    3. Go to MonthViewTitleFormat property and set it to desired value.

    Applying Date Format to Month view of Calendar in Source view:

    To set initial calendar view in source view, click the source tab and add the following code in your source file:

    <cc1:C1CalendarExtender ID="Panel1_C1CalendarExtender" runat="server" InitialView="Month" DisplayDate="02/29/2016 15:24:54"
    TargetControlID="Panel1" MonthViewTitleFormat="gg yy">
    </cc1:C1CalendarExtender>

     The following image shows the calendar title where MonthViewTitleFormat is set to 'gg yy':