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

Empty DateTime property returns date as 19700101T000000.000

SA-86194

Summary



As per the Pega documentation, the disableEpochDate and disableEpochDateTime Dynamic System Settings (DSS) are set to true. However, an empty DateTime property displays 19700101T000000.000


Error Messages



Not Applicable


Steps to Reproduce



Perform a SET action in a data transform to set a Date property (for example, A) using another property (for example, B).

At runtime, if property B is blank, then A is set to 01-jan-1970 value.


Root Cause



The disableEpochDateTime is applicable only for the Integration layer which relies on the following API internally.

com.pega.pegarules.pub.util.PRDateFormat.formatXSDDateTime(Date)

The SET action or property-set methods in the Clipboard layer return the default value for properties of type DateTime and the default value is 01-jan-1970. The Clipboard layer will not return an empty value.


Resolution



Perform the following local-change:

Add a When condition before the SET action in the data transform to determine if the value is blank or not. Skip the step if the value is blank.

Published October 31, 2019 - 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