Hi,
I am using date picker which is showing date in MM-dd-yyyy so I want to change to MM/dd/yy format
@Vivek PandileIf you are using an interaction date picker, there is an optional setting there that you can define the date format.
Hope this helps.
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
Hi,Please share the OML so that we can give you the precise solution.Thanks
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.
For an example and more information and official documentation, look to the following link:
Best regards, Ana
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
@aanchal sharma Can you share OML file also?
yeah sure