Culture Settings
The DateRangePicker control has a built-in localization mechanism that allows you to change the culture and language settings of the control.
The common Localization article describes the localization support in more details. Additional to that, RadDateRangePicker
comes with few extra properties that can be used to adjust the culture settings.
Setting the Culture
The current culture of the control describes how the DateTime values will be formatted in the calendars. To change the culture, set the Culture
property of RadDateRangePicker
.
Setting Bulgarian culture
this.dateRangePicker.Culture = new System.Globalization.CultureInfo("bg-BG");
Setting the First Day of the Week
To change the first day of the week displayed in the calendars, set the FirstDayOfWeek
property of RadDateRangePicker
.
Setting Monday as the first day of the week
<telerik:RadDateRangePicker FirstDayOfWeek="Monday" AreWeekNamesVisible="True" />
Setting the First Week of the Year Rule
To define when the first week of the year in the calendars should start, set the CalendarWeekRule
property of RadDateRangePicker
. The property is of type CalendarWeekRule
and exposes the following values:
-
FirstDay
—The first week of the year starts on the first day of the year and ends before the following designated first day of the week. -
FirstFullWeek
—The first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year. -
FirstFourDayWeek
— The first week of the year is the first week with four or more days before the designated first day of the week.
Setting the first week of the year rule
<telerik:RadDateRangePicker CalendarWeekRule="FirstFullWeek"/>