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

Selected date displays incorrectly when using Date Picker




A chatbot is configured from Channel and Interfaces. A case is created in the chatbot and a Date input is selected from the chat. However, the selected date displays one day lesser in the Answer section.

For example:

If the selected date is, 14/02/2020, the date displays as 13/02/2020 in the Answer section.

This occurs on configuring the 'Allow text entry' as No in the Date configuration.

Error Messages

Not Applicable

Steps to Reproduce

  1. Open the Test1 chatbot from Channels and Interfaces.
  2. Select a date in the Chat preview.
  3. Press Enter.

Root Cause

A defect in Pegasystems’ code or rules: Date control.


Perform the following local-change:
  1. Save As the pySubmitButton from the Embed-Channel-Control class to the 'Custom' ruleset.
  2. Configure a 'Run data transform' as the first action. The data transform takes '.pyText' as the input in the Actions tab of the 'Send' button.

  3. Create a new text property in 'SLAjyo' ruleset and the '.textOrig' custom ruleset.
  4. In the data transform, copy the input parameter value to the '.textOrig' property.

  5. As part of the third action in the Refresh-Other section, pass 'textOrig' for the pre-activty instead of 'pyText'.

Published July 14, 2020 - Updated December 2, 2021

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