Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
785
Input japanese calendar with ultraCalendarCombo
posted

Hi,

Recently I'm using ultraCalendarCombo.

As the request needs, I was wandering if I want to show the value "平成27年04月28日" in the ultraCalendarCombo, is it possible to implement that?

Does it have to like the topic below:

http://ko.infragistics.com/community/forums/t/95554.aspx

Could you please help me with that? Thanks for your concern.

P.s. "平成27年04月28日"  is actually Japanese calendar, and in culture "en-US" it's "2015/04/28"

Parents
No Data
Reply
  • 21795
    Offline posted

    Hello Richard,
    Thank you for posting in our forum.
    In order to display the dates in Japanese you need to set your CurrentThread culture calendar to Japanese calendar. You may use code like this:


    CultureInfo japanese = new CultureInfo("ja-JP");
    japanese.DateTimeFormat.Calendar = new JapaneseCalendar();
    Thread.CurrentThread.CurrentCulture = japanese;
    Thread.CurrentThread.CurrentUICulture = japanese;}


    Next step is to set the UltraCalendarCombo Format property to “D”. This will force the combo to show the date, when combo is not in edit mode, formatted as long day format which in Japanese is this 平成27年04月29日.
    Please find attached a small sample solution implementing this approach and let me know if this is what you are looking for or if I am missing something.

    CAS-155063-Z7H2B3.zip
Children