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
1140
Arabic Calendar and English Dates
posted

Hi,

We are developing an application to support both English and Arabic cultures. When I change culture as Arabic my WebDateChooser is showing Arabic calendar Years and Months. While saving I want the exact English date or else in the database wrong entries will be posted. 

Please let me know whether there is any property which will allow me to get English date in Arabic culture or How I can exclude the localization of Webdate Chooser controls alone.

 

With Regards,

JG Giridhar.

Parents
No Data
Reply
  • 24497
    posted

    Hi Giridhar,

    The WebCalendar or dropdown calendar in WebDateChooser on client can only show dates in cultures similar to arabic. It can not reliably repaint itself in order to handle date-changes for calendars which do not match with Gregorian.

    You can disable local (CurrentThread) culture of WebDateChooser and WebCalendar by using CalendarLayout.Culture property. But in this case you will loose all culture related patterns and strings. Example (within Page.OnLoad event)

    System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
    this.WebDateChooser1.CalendarLayout.Culture = ci;

Children
No Data