Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Input Text dd/MM/yyyy displays error for Date field

SA-89742

Summary



On configuring a Date control and entering a date in the dd/MM/yyyy format instead of selecting it from the Calendar control, Validation error displays.



Error Messages



Invalid date format


Steps to Reproduce

  1. Configure a Date field.
  2. Set a custom format as 'dd/MM/yyyy'.
  3. Enter an input value as 'dd/MM/yyyy' from the keyboard instead of the Calendar control.


Root Cause



An issue in the custom application code  or rules.

The Date field accepts the locale Date format only when the date is entered using the keyboard instead  of selecting it from the control. For US locale, the Date format is  MM/dd/yyyy. For different locales, different Date formats are accepted.



Resolution



Here’s the explanation for the reported behavior:

When a date entered is in the dd/MM/yyyy format and the local acceptable format is MM/dd/yyyy, the 'dd' value is considered as 'MM' and the 'MM' value should not exceed beyond 12. This caused the Validation error.

Perform the following local-change:
  1. Configure a tooltip for that particular Date field by entering a tooltip value in the Cell properties.
  2. Mention the acceptable format in the tooltip.

Published October 15, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us