I'm trying to work the date field so that it returns the following results:
when the value in the entity is null: " - "
when returning a value from the entity bring the following format: "14 Dec 2022 4:26"
I'm using a ternary If in the following example: if(Get Entity.Date <> NullDate(), GetEntity.Date, " - ")
Hi Fabiano,
From your code it seems you're using Date datatype instead of requiring a DateTime as seen from the format of value you need.
Inside the true branch of your turnary IF, just use FormatDateTime built-in function to display the value in your specific format.
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Format#FormatDateTime
Esqueci de colocar o time mas no código coloquei, essa solução funcionou no meu código, obrigado!
Hi Fabiano, what is exactly your question ?
@Fabiano Ferreira da Silva Pinto
Please translate your replied to English before posting.