Question

1
Replies
430
Views
Dilipan Venkatesan (DilipanV105)
Atos Syntel
Consultant
Atos Syntel
IN
DilipanV105 Member since 2012 144 posts
Atos Syntel
Posted: November 30, 2017
Last activity: December 4, 2017
Posted: 30 Nov 2017 9:07 EST
Last activity: 4 Dec 2017 16:11 EST
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.