Articles in this section

How to change the first day of the week in the WinUI Calendar Date Range Picker (SfCalendarDateRangePicker)

The WinUI CalendarDateRangePicker (SfCalendarDateRangePicker) displays Sunday as the first day of the week in the month view. You can change the month view's first day of the week by using the FirstDayOfWeek property of the calendar as per your requirement.

XAML

<Window
    x:Class="FirstDayOfWeek.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FirstDayOfWeek"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:calendar="using:Syncfusion.UI.Xaml.Calendar" 
    xmlns:editors="using:Syncfusion.UI.Xaml.Editors">
  
<calendar:SfCalendarDateRangePicker 
                            x:Name="sfCalendarDateRangePicker"
                            VerticalAlignment="Top" Height="30" Width="250"
                            FirstDayOfWeek="Thursday"/>
</Window>

 

Calendar DateRange first day of week

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