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

Pega function "FormatDateTime" is not working as expected

SA-27273

Summary



Pega Function "FormatDateTime" is not working as expected while using it in an activity rule.


Error Messages



Not Applicable.


Steps to Reproduce



Step1: In activity, Set a date time value in local property.
Step2: Use "FormatDateTime" to format a date and time as below. 

@(Pega-RULES:DateTime).FormatDateTime(@(Pega-RULES:DateTime).addToDate("20150818T000000.000 GMT", 0, 8, 0, 0),"YYYYMMDD", null, "GMT")

Step3: Just use Log-Message to see the converted time.


Root Cause



PRPC 6.x versions does not support Java 7 or higher version. 

Resolution



Downgrade java version to 6 version.

 

Published September 11, 2016 - 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.

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