Articles in this section

How to customize the datetime format in the WinUI Calendar (SfCalendar)

The WinUI Calendar (SfCalendar) allows you to format the month header, view header, date, and month name by using the DayFormat, MonthFormat, DayOfWeekFormat, and MonthHeaderFormat properties.

XAML

<calendar:SfCalendar 
                    DayFormat="{}{day.integer(2)}"
                    MonthFormat="{}{month.full}"
                    DayOfWeekFormat="{}{dayofweek.abbreviated(3)}"
                    MonthHeaderFormat="{}{month.abbreviated} {year.abbreviated}‎"
                    x:Name="sfCalendar"/>

 

WinUI Calendar DateTime format

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied