Hi!
I wanted to show my date fields as only date: dd-MM-yyyy, but in the batabase (external) it is represented as datetime, so when I save the values it must be datetime.
Is there any way to deal with this?
Thanks...
You now have the aggregate attribute directly in an expression.
Something like
Aggregate Name.List.Current.EntityName.AtrributeName
Change those to
FormattedDate(Aggregate Name.List.Current.EntityName.AtrributeName)
Hi Diogo,
You can use the built-in function FormatDateTime to do that.
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Format#FormatDateTime
Best practise is to create your own public action that calls FormatDateTime, so that you have the format only defined on one place. Changing the format, if you want to in the future, is then limited to one action to be changed.
Regards,
Daniel
Thanks,
I understand the idea, but how can that be done with that action?
I must make some assignment, I think... but I'm not seeing what to assign to apply it to all the dates... I'm missing something :)
That looks great! :))
I just didn't understand the point 7... how to apply the function to the fields?