# .NET MAUI Calendar Header Text Formatting

The <a href="https://www.telerik.com/maui-ui/calendar" target="_blank">.NET MAUI Calendar</a> allows you to specify the format of the header label text in the different display modes. The format must be a valid date format. The available options for the header label text formatting are:

* `MonthHeaderTextFormat`(`string`)—Specifies the format of the header text when the Calendar `DisplayMode` is `Month`.
* `YearHeaderTextFormat`(`string`)—Specifies the format of the header text when the Calendar `DisplayMode` is `Year`.
* `DecadeHeaderTextFormat`(`string`)—Specifies the format of the header text when the Calendar `DisplayMode` is `Decade`.
* `CenturyHeaderTextFormat`(`string`)—Specifies the format of the header text when the Calendar `DisplayMode` is `Century`.

## Header Text Format Example

The following example demonstrates how to define a Calendar and format the header text with the `MonthHeaderTextFormat`, `YearHeaderTextFormat`, `DecadeHeaderTextFormat`, and `CenturyHeaderTextFormat` properties:

```XAML
<telerik:RadCalendar MonthHeaderTextFormat="{}{0:yy MMMM}"
                     YearHeaderTextFormat="{}{0:yy} year"
                     DecadeHeaderTextFormat="{}from {0:yy} to {1:yy}"
                     CenturyHeaderTextFormat="{}from {0:yy} to {1:yy}" />
```

![Telerik UI for .NET MAUI Calendar with a custom header format displaying 23 June](https://www.telerik.com/maui-ui/documentation/assets/578a4744cf696e0e03ccc3dd51e22838/calendar-formmating-header.gif)

## See Also

* [Navigation Between the Different Views](https://www.telerik.com/maui-ui/documentation/controls/calendar/navigation)
* [Specify the Formatting](https://www.telerik.com/maui-ui/documentation/controls/calendar/formatting)
* [Selection modes](https://www.telerik.com/maui-ui/documentation/controls/calendar/selection)
* [Use the exposed Commands](https://www.telerik.com/maui-ui/documentation/controls/calendar/commands)
* [Define Templates](https://www.telerik.com/maui-ui/documentation/controls/calendar/templates)
* [Calendar Header Styling](https://www.telerik.com/maui-ui/documentation/controls/calendar/styling/header-styling)
