Expand my Community achievements bar.

Locale Issue with DateTime field


Level 10

I'm designing a simple form; all the form field's locale set to en_US (English).

My system has two languages installed English & Arabic.

When I choose a date from the field, the rawValue set to Arabic numeric values.

I'm sure that the Regional & Language setting pointing to English numerals & date formats.

Can someone advise me how to get rid of the arabic value from DateTime field?



1 Reply


Level 4

We've encountered this prob in production already.  the issue is with Reader 9.x (where x < 4).  The problem is resolved in Reader 10.

Reader 9.x doesnt seem to take into consideration that you've specified the locale to ENG on the field in designer.

The reason the rawValue is storing arabic is probably because your system locale is set to arabic, while your "regional" setting is english.

In control panel > Regional and Language Options > Administrative and see what the Language for non Unicode programs is set to.

Im assuming the arabic values is preventing you from validating with a RegEx.

You have 2 options.

1.  Tell your user to upgrade to Reader X

2.  write a function to convert the date (getTime) and the convert back and then do your validation.

A work around is to have them change the system locale to english if they have admin rights.