getLocaleDateInfo

getLocaleDateInfo(lcid: Integer;
                  info: DateFormat input);

The getLocaleDateInfo method of the Schema class gets the date formatting information from the DateFormat class for the locale specified in the lcid parameter.

Set the value of the lcid parameter to zero (0) if you want to return information for the current locale.

Formatting of locale data is done on the application server, based on the locale of the corresponding presentation client. For example, if the locale of your application server is set to English (United Kingdom), which has a default short date format of dd/mm/yyyy, and it has been overridden with a short date format of yyyy-mm-dd, this is returned in the default dd/mm/yyyy format.

When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file is not defined or it is set to false, inconsistent results could be returned to the application server when running in JADE thin client mode and there are regional overrides, as all overrides on the application server are suppressed.

When the EnhancedLocaleSupport parameter on the database node is set to true, this method returns the date information with regional overrides suppressed, unless the lcid parameter is set to zero (0) when the current thread locale is the session locale or the lcid parameter is set to the JadeLocaleIdNumbers category LCID_SessionWithOverrides global constant (which enables you to easily code calls for information about the session locale without having to change the current locale).

Regardless of the value of the EnhancedLocaleSupport parameter, if you set the lcid parameter to zero (0), the information is returned for the current thread locale.