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
160
UltraDateTimeEditor not displaying correct date when regional settings are set to Thai
posted

If a users is running with Windows regional format settings and location set to Thai then the UltraDateTimeEditor displays the incorrect year in the editor.  For instance if the year gregorian year is 2015, the editor should be displaying 2558 but instead it displays 2015.   The drop down calendar does display the correct year though.  Is there a way to make the embeddable editor portion of the control display the correct year, we are using the 2012v2 version of the controls.?

  • 21795
    Offline posted

    here is the sample.

    CAS-150687-F3S2Z9_02.zip
  • 21795
    Verified Answer
    Offline posted

    Hello Todd,

    Thank you for posting in our forum.

    Infragistics controls support only the Gregorian calendars, and when you use Thai culture, it uses ThaiBuddhistCalendar. The component which you have chosen to use – UltraDateTimeEditor has for a dropdown standard MS MountCalendar (which is culture aware) and EditorWithTime (which is not culture aware), which actually cause this issue. However you can use UltraCalendarCombo as it shows correct data as per ThaiBuddhistCalendar, and it is not culture aware, and it shouldn’t cause issues in displaying of the date, but you should keep in mind that you might need to convert the returned date time to the corresponding calendar to which you should save this value.

    Please find attached a small sample solution implementing this approach.

    Please let me know if you have any further questions.