Hi, OutSystems provides us a function called SetCurrentLocale() to set locale for application, but this action doesn't affect on Date/Time variable to display. 

Example: a default date expression with this format "ddd, MMM DD, YYYY" it will be displayed like this: Thu, Nov 20, 2019. In Vietnamese language it should be displayed like this (I guess so): T5, Th11 20, 2019.

Right now, I'm using extension to change the DefaultThreadCurrentCulture to specific locale too but it didn't work.

Here is my code in Integration Studio, does anyone know what's the issue here?

Thanks

Hi Logan,

Can you please try this component  https://www.outsystems.com/forge/component/500/time-zone/.

Thanks

Neha

Neha Rathore wrote:

Hi Logan,

Can you please try this component  https://www.outsystems.com/forge/component/500/time-zone/.

Thanks

Neha

Hi Neha, this component just only to get timezone ID of specific location, it doesn't help anything for OutSystems date time format

Hi Logan,

For outsystems date time format you can use FormatDateTime that you can find in built in functions.

Thanks

Solution

HI Logan,

OutSystems' locale is different from the .NET locale. It is used only for Translations, not for formatting of dates, currency, numbers etc. OutSystems has several formatting functions, like the FormatDateTime Neha mentioned, but you need to supply a format every time, so it's less than ideal. One solution would be to create your own formatting Action, or for display a (Web) Block, that either uses the built-in formatting actions or uses an Extension that you create.

Solution