731
Views
5
Comments
Solved
display blank instead of "1900-01-01" 
Question

Hi


I want to display the blank  instead of  "1900-01-01"  in the table if the suitable date is not there can anyone help me in this?


Thank you

2022-02-07 08-52-30
Pranav Pandey
Solution

Hi Primal Lobo,

Basically this indicates that no date was provided and it the null date value in outsystems. While displaying you can use if condition to check for null value and display blank. Please see the sample below

SyntaxEditor Code Snippet

if(Tags.List.Current.UpdatedOn = NullDate(),"",Tags.List.Current.UpdatedOn)

Hope this will help.

Thanks

UserImage.jpg
Primal Lobo

pranav pandey wrote:

Hi Primal Lobo,

Basically this indicates that no date was provided and it the null date value in outsystems. While displaying you can use if condition to check for null value and display blank. Please see the sample below

SyntaxEditor Code Snippet

if(Tags.List.Current.UpdatedOn = NullDate(),"",Tags.List.Current.UpdatedOn)

Hope this will help.

Thanks

yes worked , 

Thank you


2024-09-03 10-16-38
Prasath P

how to do data conversion it's not working from my side.

UserImage.jpg
Yanick Trindade

Thank you so much!

UserImage.jpg
Cesar Boucas

Here a simple approach that does not require aditional "if" statement: set the "Null Value" property of the text input field to #1900-01-01# (using the sharp characters #, instead of quotation marks).  

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.