Question

2
Replies
44
Views
Kapil Dev Gautam (KapilDevG)
LTI

LTI
IN
KapilDevG Member since 2016 2 posts
LTI
Posted: June 22, 2021
Last activity: June 27, 2021
Posted: 22 Jun 2021 3:20 EDT
Last activity: 27 Jun 2021 23:14 EDT

Getting incorrect business day difference by using function differenceBetweenDays

Hi All,

We are facing a issue with differenceBetweenDays function. By using  this function we are getting correct results for past days (Current Date and Past Date) but for future it is giving incorrect date difference(  because it is considering Saturday as working day and Sunday/Monday as holiday).

@(Pega-RULES:BusinessCalendar).differenceBetweenDays( Param.CurrentDate, Param.DesiredDate , true, pxRequestor.pyCalendar)

 

Thanks and Regards,

Kapil Dev Gautam

***Edited by Moderator Marissa to update Platform Capability tags****
Pega Platform 8.3.4 User Experience Senior System Architect