This is a migrated thread and some comments may be shown as answers.

How to use ko-KR culture?

3 Answers 121 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Yonghan
Top achievements
Rank 1
Yonghan asked on 19 Feb 2011, 08:36 AM
Hi,
Can I use ko-KR culture ?
DatePicker controls are works fine. but DateTimePicker control display en-US.

dateTimePicker1.Culture = new CultureInfo("ko-KR")
    { DateTimeFormat = new DateTimeFormatInfo
        { ShortDatePattern = "yyyy-MM-dd", ShortTimePattern = "HH:mm" } };

Regards,
Yonghan Yoon

3 Answers, 1 is accepted

Sort by
0
Accepted
Kaloyan
Telerik team
answered on 23 Feb 2011, 01:53 PM
Hello Yonghan,

Try setting the DateTimeFormat this way:

radDateTimePicker.Culture = new CultureInfo("ko-KR");
radDateTimePicker.Culture.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
radDateTimePicker.Culture.DateTimeFormat.ShortTimePattern = "HH:mm";

So the most of the DateTimeFormat information won't be lost.

Greetings,
Kaloyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Yonghan
Top achievements
Rank 1
answered on 25 Feb 2011, 05:06 AM
Hi, Kaloyan

It's working.
but I don't understand what's different?

Regards,
Yonghan
0
Kaloyan
Telerik team
answered on 25 Feb 2011, 11:41 AM
Hello Yonghan,

Most of the information and configuration will be lost and overwritten when you set a new DateTimeFormatInfo instance. So a better approach is to set only the properties you need.

Kind regards,
Kaloyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DateTimePicker
Asked by
Yonghan
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Yonghan
Top achievements
Rank 1
Share this question
or