DateItem i18n

I’m running into a problem with localization using SmartClient 5.6. I’m using the DateItem form field, and ideally I would like to use the browser settings to select the appropriate date format.

I know that I can explicitly set the date format of the date object, just not based on locale. Is there any way to do this using the SmartClient API?

Hi johnboy,

You could check the locale and automatically default to particular formats for known locales.

This thread on another forum talks about how to get the locale from JavaScript. In a nutshell: