Good day,
I'm finding the solution to change the format of date input from "mm dd yyyy" to "dd mm yyyy".
When I dealing with this, I saw that there are attribute wit 2 options: class and style.
I would like to ask what is this use for, the difference between class and style in this, and can this help me to change the format of the date input?
Thanks in advance.
Regards,
Joe.
as i searched a lot. and got to know, read alot of articles and gone through videos. in normal input type date we can't format it. but yet after selecting and while saving the data we can change it. i suggest you to use date picker instead of the normal date type.
Thanks
Prince
hi Joe ng
please put the format of date as you want there are examples you can set as you want to
thanks
Hi Prince,
I'm not going to use date picker, so your solution may not suitable for my case.
Thanks for your response.
Did you try this?
You mean input mask?
Is it a forge component?
Noted, I will try with date picker, thanks for your suggestion.
Unfortunately, this forge can only be used in traditional web
Noted, thanks for your remind.
Hi @Joe Ng
You can use the FormatDateTime function, available in built-in functions.
Please check this for references.
https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/format/#FormatDateTime
and write your logic in the on-change of your widget.
Coming to your second question, using style properties in attributes, you can apply inline CSS.
and with the class property, you can apply a specific class. Also, here you can apply different classes depending on the condition (if condition(If required).
But this is used only to apply CSS. It cannot help you change your date format.
Hope this will help you.
Hi Vaishali Shrivastava,
Thank you for your response, I tried with the FormatDateTime function before, but I'm not sure where should I place it.
And for the second question thanks for your sharing, good day ahead.
Joe Ng.