Date Format is override by browser date format

Hello everyone,

I'm using OS11 reactive.

I have a Input Date which uses the DatePicker DateFormat like this "DD-MM-YYYY"

If the browser language is in Portuguese i don´t have any problem, the problem is when the browser language is in English. The display date change to the format "MM-DD-YYYY".


Does anyone know how to ensure that the DateFormat is maintained in the browser?


Best and regards

Hi Tiago,

Not sure about the issue but you can try to use this component.

https://www.outsystems.com/forge/component-overview/2258/input-masks-library


Hope it helps,

Assif

Hi Tiago,

 Use 

SyntaxEditor Code Snippet

FormatDateTime

function to override formate.

look sample oml. 

Hope this will help you.

Regards 

Rahul Sahu

assif_tiger wrote:

Hi Tiago,

Not sure about the issue but you can try to use this component.

https://www.outsystems.com/forge/component-overview/2258/input-masks-library


Hope it helps,

Assif

This is not what i'm looking for.

Thanks 


Rahul Sahu wrote:

Hi Tiago,

 Use 

SyntaxEditor Code Snippet

FormatDateTime

function to override formate.

look sample oml. 

Hope this will help you.

Regards 

Rahul Sahu

Hi Rahul,

I tried to apply the FormatDateTime, but when choosing a date the input is empty despite the assignment being made. Only when choosing the date again the input is filled.

Another thing, the assign made in the OnInitialize dont have any effect. I guess is a visual problem.