Support Article

Date format changes on click on submit if validations exists



It is observed that the Read only date format changes to some other format if there is any validation fired on click of submit.

Error Messages

Not Applicable

Steps to Reproduce

1. Configure a date control with Read-only format set to Date.
2. Configure a declareexpression on the property. @(Pega-RULES:DateTime).addCalendar(.EffectiveDate, "", .ExpirationMonths, "", "", "", "", "")
3. Configure a flow and have a post-validation error message on the section and see that it fails after Submission.
4. Check the format of the date control changing form 01/10/2016 to Oct 10, 2016 12:00:00 AM.

Root Cause

A defect in Pegasystems’ code or rules.

This could be due to the declare expression configured on the property. GetTargets activity response is retrieved incorrectly. Raised BUG-290502 item.


Perform the following local-change:

Change the control Read-only format to DateTime.

Published February 22, 2017 - Updated March 8, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.