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

DateTime Formatting Errors

SA-101205

Summary



Post upgrading Pega Platform 7.2 to Pega Platform 8.3.1, the following issues occur:

Issue 1: On configuring a DateTime property and setting the Read only format as the custom format in the Presentation tab ('Week of:' MMMM dd, yyyy), the date displays incorrectly.

For example,

In Pega Platform 8.3.1, the date display as '7Fr24 of:' February 14, 2020.
However, in Pega Platform 7.2, the date displays correctly as Week of: February 05, 2020.


Issue 2: On configuring a Read only text and configuring a Format as ‘Date’ and custom Date format as EEEE in the Presentation tab, the date displays incorrectly.

For example,

In Pega Platform 8.3.1, the Date displays as Feb 7, 2020 12:30:56 PM. However, in Pega Platform 7.2, the Date displays correctly as 'Friday'.



Error Messages


Not Applicable


Steps to Reproduce


Issue 1:
  1. Configure a DateTime property.
  2. In the Presentation tab, configure Read only format as the custom format (Week of:' MMMM dd, yyyy).
Issue 2:
  1. Configure a Read only text.
  2. In the Presentation tab, configure the Format as Date and the custom Date format as EEEE.


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Issue 1: In the Template mode, when the custom DateTime format includes plain text in single quotes, in the pega.ui.Formatter.formatDateTime method, the entire String format is processed instead of only the DateTime format.

This feature is implemented in Pega Platform 8.3.2.

Issue 2: The Text control is configured with a property of type Text. In the Presentation tab, the type is selected as Date. This configuration is incorrect.

To display the date, the property type must be Date/DateTime.

This functions in Pega Platform 7.2 since formatting is performed on the server side and JAVA libraries are available to convert the date from any time zone to GMT.
However, in Pega Platform 8.x, the formatting is performed on the client side and libraries are unavailable to convert the Date from any time zone to GMT.

As a local-change, pass the GMT value to the Text property. However, it is recommended to use the Date/DateTime property type instead of Text.

Published July 21, 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