Question

9
Replies
2962
Views
Natarajan MH (NatarajanMH)
TCS
I.T. Analyst
TCS
IN
NatarajanMH Member since 2015 3 posts
TCS
Posted: June 28, 2017
Last activity: July 17, 2017
Posted: 28 Jun 2017 3:05 EDT
Last activity: 17 Jul 2017 7:58 EDT
Closed

Difference between days function not working as expected

Hi All,

I'm trying to get the difference between 2 days (excluding weekends using the business calendar ) using the below function. But it giving inconsistent result.

@(Pega-RULES:BusinessCalendar).differenceBetweenDays("20170622","20170628" , true,Calendar)

Calendar- excluding the weekends

timezone-Australia/Sydney

PEGA version: 7.1.6

The above function should return 4.

But I'm getting different answers like 3 or 4 or 5 inconsistently.

Could anyone help me on this.

Thanks in advance

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.