250
Views
7
Comments
need change date format to MM/dd/yy
Question
Service Studio Version
11.54.2 (Build 62176)

Hi,

I am using date picker which is showing date in MM-dd-yyyy so I want to change to MM/dd/yy format

2023-03-16 18-12-52
Michael Chu

@Vivek Pandile
If you are using an interaction date picker, there is an optional setting there that you can define the date format.


Hope this helps.

2024-09-12 02-43-38
Deepsagar Dubey

Hi @Vivek Pandile 

You can check available date time formats here -

https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/format/ 

Thanks

Deep

2022-06-23 06-21-50
Siddharth Vyas

Hi,
Please share the OML so that we can give you the precise solution.

Thanks

2023-01-26 16-03-24
Ana Agostinho

Hello Vivek Pandile,

There are multiple ways of changing the date format. 

First of all, do you need this new format only on a certain input or you want to define it as the global date format of the environment? 

If you want to change it and make all the date formats to be this new one, you can go to the Environment Configuration tab on Service Center. 


If you need just to change it in a certain date picker input, you can use the date format property of the date picker:


For an example and more information and official documentation, look to the following link: 

Best regards, 
Ana

2024-10-07 06-43-19
Aanchal Sharma

Hi @Vivek Pandile 

you can follow such steps

1.Create a local variable of type Date called "SelectedDate".

2.Set the value of "SelectedDate" to the selected date from the date picker.

3.Create another local variable of type Text called "FormattedDate".

4.Use the FormatDateTime function to format the date in the desired format

Assign the result of the FormatDateTime function to the "FormattedDate" variable 

"FormattedDate" = "FormatDateTime(SelectedDate, "MM/dd/yy")"

You can then use the "FormattedDate" variable wherever you need to display the date in the desired format. 

hope this will helpful to you.

here is sample Url for that

:https://personal-9vnvgofj.outsystemscloud.com/SolutionForAll/timeformate

UserImage.jpg
Raj Sharma

@aanchal sharma Can you share OML file also?

2024-10-07 06-43-19
Aanchal Sharma
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.