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

FormatDateTime function output result incorrect



In Pega 8.2.1, the FormatDateTime function output result is incorrect when using the below Property set Code.


In Pega 8.2.1 (ActualParentalLeaveStartDate :20190526T140000.000 GMT)

Output: 20190527T000000.000 AEST

Prior to Pega 8.2.1 (ActualParentalLeaveStartDate :20190526T140000.000 GMT)

Output: 20190527T000000.000 GMT+10:00

Error Messages

Not  Applicable

Steps to Reproduce

Create a data transform and set a property to the below function:


Root Cause

A defect in Pegasystems’  code or rules.


Perform the following local-change:
  1. Open the out-of-the-box DateTime library and save it in the application ruleset.
  2. Open the out-of-the-box FormatDateTime function and save it in the application ruleset.
  3. Check in the changes.
  4. Click the Generate library function buttons.
  5. Clear the browser cache for the new function to take effect. 
Suggest Edit

Published August 15, 2019 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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