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](images/kb-datetimepicker-show-only-month-in-calendar-header-0.png)
The same approach applies to RadDatePicker.