How to use ko-KR culture?

4 posts, 1 answers
  1. Yonghan
    Yonghan avatar
    27 posts
    Member since:
    Dec 2010

    Posted 19 Feb 2011 Link to this post

    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
  2. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 23 Feb 2011 Link to this post

    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!
  3. DevCraft banner
  4. Yonghan
    Yonghan avatar
    27 posts
    Member since:
    Dec 2010

    Posted 24 Feb 2011 Link to this post

    Hi, Kaloyan

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

    Regards,
    Yonghan
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 25 Feb 2011 Link to this post

    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!
Back to Top