Each culture has different conventions and formats for displaying dates, time, numbers, and other information. This topic illustrates several different ways to set the culture of a C1EventsCalendar using the Culture property.
Setting the Culture in Design View
To set the culture of a C1EventsCalendar control, complete the following steps:
Setting the Culture in Source View
To set the culture in Source view, add Culture="ja-JP" to the <cc1:C1EventsCalendar>
tag. Once you've set this property, your markup will resemble the following:
To write code in Source View
Setting the Culture Programmatically
To set the culture programmatically, add the following code into the Page_Load event:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
CC1EventsCalendar1.Culture = new System.Globalization.CultureInfo("ja-JP") |
To write code in C#
C# |
Copy Code
|
---|---|
C1EventsCalendar1.Culture = new System.Globalization.CultureInfo("ja-JP"); |