How to catch default error when invalid datetime format entered in dateTimeField?. If we catch the error it will be useful to validate for other dependencies like to enable/disable button.
Eg: How to save the default error message in a variable which we found red colored text in the below screenshot?
Discussion posts and replies are publicly visible
as mentioned we can not do that, but if you just want to enable or disable fields based on just valid date and time, you can apply a null check to the fields because the value will be saved only when you enter the valid date and time.