Question

1
Replies
399
Views
DilipanV105 Member since 2012 144 posts
Atos Syntel
Posted: November 30, 2017
Last activity: December 4, 2017
Closed

How to pass argument to Calendar parameter in TimeDifferenceBusinessDays(aCalendar,strStart,nDays,nHours,nMinutes,nSeconds) function

I learned from a post in PDN that you can use this function in a java step like below and it also worked for me.

java.util.Calendar cal=java.util.Calendar.getInstance();
String D1 = pega_rules_datetime.TimeDifferenceBusinessDays(cal,"20171129T010000.000 GMT",1,1,1,1);

Below are my questions regarding this function

1. Is it only possible to use this function in java step and not in the form of expressions of expression builder, cause i tried passing values like USDefault, Default in expression builder for calendar parameter and it gave me error.

2. If it can be used only in java step, how can we pass a different calendar than the default one?

***Updated by moderator: Lochan to update Categories***

Low-Code App Development Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn