Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Colin Crawford
2
Views
4
Comments
Hide default date
Question
Start Date Time
01-01-1900 00:00:00
End Date Time
01-01-1900 00:00:00
I have an example where a record is saved with default value for date. However, where the date is the default value, I want to hide it from the user. I tried enclosing it in an IF with the condition <date_colum> = "'#01-01-1900 00:00:00#" but this doesn't appear to work. Any ideas?
Mac mac
Hi Colin,
That became a problem with my project too, I used a variable and assign it to the textbox as a work-around.
Don't forget to use that variable in displaying or saving the date.
Regards,
Mark Chua
Carla Ribeiro da Fonseca
Have you tried defining the "default value" property in the textbox widget to #1900-01-01 00:00:00# if you're using a DateTime, or just #1900-01-01# for a Date?
Hermínio Mira
Hi Colin,
"
I tried enclosing it in an IF with the condition <date_colum> = "'#01-01-1900 00:00:00#" but this doesn't appear to work. Any ideas?
"
Change it to "<date_column> = nulldate()" and try again.
Cheers,
Hermínio Mira
Colin Crawford
Hermínio,
Perfect.... Works a treat. Thanks.
Colin
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...