Change date format

Hi, I am trying to change the date format from MM/DD/YYYY to DD/MM/YYYY. I have already changed the locale in the client.config from en_US to en_UK, but nothing has changed. Does someone know where i can adapt it?
Thanks!

Hello, In order to setup the Client with a single locale that is not the default en_US, you have to set the current locale in the Redux store to the desired locale, e.g. `en_UK.

Hi, thanks for your reply. Is this something i can do as a modeler in the sme?

Hi @hannah-rugged-layer,

The Date format changes depending on the locale as mentioned here, but the currently supported locales by A12 are English/United States and German/Germany, in case you need to change the Date format from MM/DD/YYYY to DD/MM/YYYY you need to change locale to German.

You can also add additional locales, e.g. en_UK, and then also add the respective configuration of date and number formats for that locale.

However, that is not a pure modeling feature.
The specification of the formats would need to be added in code via the means of the Localization API.

Hi @josef-brisk-cache , do you know if there is any way I can config the date format from Back-end code?

AFAIK, overview and form using the different technique to render the date format:

  • With Overview, using dataFormat - custom dataFormat to change format of field date.

  • With Form, using Converter - custom converter then pass to converter in Form component ( ex: CRUDViews.FormEngineView )