Date format is not as mentioned in properties
When user enter the date in required read only format and when focus is out from the date field, it is showing error.
When user select the date from date picker, it is not showing in read only format only when focus is out from the date field it is changing to the required date format as mentioned in Presentation tab of Date Property
"xxxxxx is not a valid date/time value " error is thrown for issue 1 as shown below.
Steps to Reproduce
Have Date field with the' Allow text entry' enabled and uses Read only Custom format as shown below.
Works correctly as per the design.
When we use 'Allow text entry' configuration on the date field and when we try to enter the date, the date format entered will be checked against the locale format, hence when date is given in a format other than locale then error is thrown.
The Read only format is used to display the date in that format after selecting from the date picker calendar icon or entering the date in the locale format and then when focus is out of that field, that is why when we move the focus on the date field again (field will be in editable mode) the date will be diaplayed in the locale format itself. Issue2:Only when we focus out of a field its read only formatting will be applied to the field.
Here’s the explanation for the reported behavior:
The two issues reported are expected, the following suggestions can be considered to avoid the issues.
1. To enter the date in the locale format and once the focus is outside then it converts to the read only custom format (or)
2. To avoid user entering the date by disabling by setting "Allow Text Entry" as No
Set "Allow Text Entry" as No in the presentation tab of the date cell properties.
100% found this useful