188
Views
6
Comments
Date Picker format to MM-DD-YYYY not working
Service Studio Version
11.14.1 (Build 55514)

Good day everyone!
I have a problem in formatting a date using an input widget and a date picker. I try to set the 'DateFormat' property in date picker to 'MM-DD-YYYY'. But still have an error. Is there a code I need to add or just a change in the properties is the one I need. Images attached for reference. Thank you guys!

2021-06-02 20-50-04
Márcio Carvalho

Can you share an OML?

Also, you can see here the documentation on how to use the date picker

https://success.outsystems.com/Documentation/11_x_platform/Developing_an_Application/Design_UI/Patterns/Using_Mobile_and_Reactive_Patterns/Interaction/Date_Picker/How_to_use_the_Date_Picker_UI_Pattern

I have shared an OML, this is just an example really close to what you have. But you with more inputs.

Kind Regards,

Márcio

DateAndTime.oml
UserImage.jpg
RD.

I tried to attached the oml but the file is too large, also tried the oml you attached, it doesn't solve the problem. The main concern is the date format, how I can set it to MM-DD-YYYY and be able to save it. Thank you

2025-04-17 05-42-16
Ajit Kurane

Hello RD,

Please find the  OML  file for the same.

Regards,

Ajit Kurane.

datepicker.oml
2025-04-17 05-42-16
Ajit Kurane

Hello RD,

If you want to achieve this one in traditional web then you can refer below oml.

Even issue not resolved please share sample OML from your end.

Regards,

Ajit Kurane.

traditionalcalendar.oml
2018-10-18 08-34-00
Eric Bulters
 
MVP

You might be running into the limitation of the form validation

2024-06-13 07-53-34
Paulo Moreira
 
MVP

Hi RD,

The DateFormat of the DatePicker widget is only applied correctly if the bound InputWidget type is set to Text.

Please refer to the DateFormat parameter description:

Hope it helps.

Best regards,

Paulo Moreira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.