# Globalization

RadCalendar supports the following .NET Framework calendar implementations:

* **ChineseLunisolarCalendar**, which represents the **Chinese lunisolar** calendar.

* **GregorianCalendar**, which represents the **Gregorian** calendar. This calendar is further divided into subtypes (such as Arabic and Middle East French) that are defined by the *System.Globalization.GregorianCalendarTypes* enumeration. The **GregorianCalendar.CalendarType** property specifies the subtype of the Gregorian calendar.

* **HebrewCalendar**, which represents the **Hebrew** calendar.

* **HijriCalendar**, which represents the **Hijri** calendar.

* **JapaneseCalendar**, which represents the **Japanese** calendar.

* **JapaneseLunisolarCalendar**, which represents the **Japanese lunisolar** calendar.

* **JulianCalendar**, which represents the **Julian** calendar.

* **KoreanCalendar**, which represents the **Korean** calendar.

* **KoreanLunisolarCalendar**, which represents the **Korean lunisolar** calendar.

* **PersianCalendar**, which represents the **Persian** calendar.

* **TaiwanCalendar**, which represents the **Taiwan** calendar.

* **TaiwanLunisolarCalendar**, which represents the **Taiwan lunisolar** calendar.

* **ThaiBuddhistCalendar**, which represents the **Thai Buddhist** calendar.

* **UmAlQuraCalendar**, which represents the **Um Al Qura** calendar.

You can set the default calendar for the whole application or for a specific RadCalendar instance as demonstrated in **Example 1** and **Example 2**.

**Example 1: Setting the default calendar application-wide**

```C#
CultureInfo arSA = CultureInfo.CreateSpecificCulture("ar-SA");
Thread.CurrentThread.CurrentCulture = arSA;
Thread.CurrentThread.CurrentUICulture = arSA;
arSA.DateTimeFormat.Calendar = new HijriCalendar();
```

```VB.NET
Dim arSA As CultureInfo = CultureInfo.CreateSpecificCulture("ar-SA")
Thread.CurrentThread.CurrentCulture = arSA
Thread.CurrentThread.CurrentUICulture = arSA
arSA.DateTimeFormat.Calendar = New HijriCalendar()
```

**Example 2: Setting the calendar for a specific RadCalendar instance**

```C#
CultureInfo arSA = CultureInfo.CreateSpecificCulture("ar-SA");
arSA.DateTimeFormat.Calendar = new HijriCalendar();
calendar.Culture = arSA;
```

```VB.NET
Dim arSA As CultureInfo = CultureInfo.CreateSpecificCulture("ar-SA")
arSA.DateTimeFormat.Calendar = New HijriCalendar()
calendar.Culture = arSA
```

**Figure 1** demonstrates the final result:

> caption Hijri calendar

![Hijri calendar](https://www.telerik.com/products/wpf/documentation/assets/20a2145ca0662460c1ae1ea69fb9175f/calendar-hijri.png)

## Right-to-Left Calendar

Set the `FlowDirection` property to `RightToLeft` when the calendar should use a right-to-left layout and keyboard direction:

```XAML
	<telerik:RadCalendar FlowDirection="RightToLeft" />
```

`FlowDirection` and `Culture` control different aspects of the calendar. `FlowDirection` controls the right-to-left direction, while `Culture` controls localized date information and the calendar system. To configure both for an Arabic calendar, use the following code:

```C#
	CultureInfo culture = CultureInfo.CreateSpecificCulture("ar-SA");
	culture.DateTimeFormat.Calendar = new HijriCalendar();

	calendar.FlowDirection = FlowDirection.RightToLeft;
	calendar.Culture = culture;
```

The calendar uses its `FlowDirection` when processing horizontal keyboard navigation. Set `Culture` only when you also need culture-specific date formatting or a specific calendar implementation.

> For more information on how to use the calendar classes when working with date values, please read the following [MSDN article](https://msdn.microsoft.com/en-us/library/82aak18x).

## See Also

* [Calendar Basics](https://www.telerik.com/products/wpf/documentation/controls/radcalendar/basics)
