Support Article
Application automatically changes the separator in Date field
SA-66218
Summary
Error occurs on entering a date like '9-15-2018' in the Date field. Eventually, Pega automatically changes the date format to '9/15/2018 which confuses the user.
Error Messages
9-15-2018 is not a valid date value
Steps to Reproduce
- Create a Date property and use that property in a section with a DateTime control
- Configure a change event with post value and refresh this section actions on the DateTime control
- Run the case with the DateTime control
- Enter 9-12-2018 and click the screen. It automatically changes to 9/12/2018
Root Cause
A defect in Pegasystems’ code or rules. On Refresh, the value is submitted and at server side the value is formatted correctly. However, this does not change the value in the Clipboard. Client side validation occurs on values present on the Clipboard, and hence the flow results in an error.
Resolution
Perform the following local-change:
- Open the Cell properties and navigate to the Presentation tab
- Choose 'Allow text entry' radio button as 'No'
Published November 1, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.