Question
Problem of finding end time of business day (current day)
Hi,
I have the problem of finding end time of business day (current day). For example if an operator tries to perform an action on a case on Monday at 2 PM IST and as per his calendar business end time on Monday is 5 PM IST. then I should be able to get 5 PM in response.
Is there any OOTB for this ? Getting calendar instance though will solve the problem, but to get calendar instance we need startDate as its one of the key for Calendar instances. As calendar start date will not be associated to operator, how to overcome this challenge ?
Thanks in advance.
***Updated by moderator: Lochan to create new post from this reply***
Original Post: How to get the End Time(Closing Time) of a business day
Hi,
Could you try using below OOTB function
@(Pega-RULES:DateTime).addToDate(<DateTimeProperty>,<No.of days>,<Hours>,<Minutes>,<seconds>)
DateTimeProperty - datetime
days - string
hours - string
minutes - string
seconds - string
if passed from agent -- please pass OperatorID.pyCalendar as parameter.
Also I believe below links should be helpful
https://pdn.pega.com/how-businesscalendar-functions-adddays-and-addtime-treat-holidays-weekends-and-time-zones
https://pdn.pega.com/community/pega-product-support/question/populate-business-day-based-calendar
Thank You.