I want to set the NULL Identifier as the default value for DateAndTime(), how can I do that ?
Hello Ramkumar,
you can put default value in property like this,
NullIdentifier()
Regards,
Ajit Kurane.
Okay....If I doesn't fill the DateAndTime() field in User Interface ,it will show the default value of date like 1-Jan-1990 . Instead of that I want show the value as Empty or NULL value. How can I do that ?
Please find the updated oml and let us know its working or not.
Yeah ...It is working .
Thanks for your help..
We couldn't set NullIdentifier() as default value for DateandTime() instead we can set NullDate() as default value.
Kindly check the below image for your clarifications.
Dinesh Kumar.
Hi Ramkumar,
OutSystems saves null date time as 1900-01-01 00:00:00.
If you want to display empty values instead of 1900-01-01, make an expression with if condition to display empty text when the variable has NullDate().
If(Date=NullDate(),NullTextIdentifier(),Date)
Thanks.
Like @Somesh Renganathan says: There is a nulldate(), which sets date to 1/1/1900 00:00:00.
This is also the default value for new datetime variables.
Outsystems does not have a real NULL as you might know in other languages.