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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.