New to Telerik UI for WPF? Download free 30-day trial

How to Show Only Month in Calendar Header of RadDateTimePicker

Environment

Product Version 2019.1.220
Product RadDateTimePicker for WPF

Description

How to show only the month of the selected date in the calendar's header of RadDateTimePicker.

Solution

Set the MonthViewHeaderFormat property of the RadCalendar control. You can do this via the CalendarStyle property of RadDateTimePicker.

<telerik:RadDateTimePicker> 
    <telerik:RadDateTimePicker.CalendarStyle> 
        <Style TargetType="telerik:RadCalendar"> 
            <Setter Property="MonthViewHeaderFormat" Value="MMMM" /> 
        </Style> 
    </telerik:RadDateTimePicker.CalendarStyle> 
</telerik:RadDatePicker> 
Before and after the style

The same approach applies to RadDatePicker.

In this article