I want to calculate the date difference in days between a specific date and current date. I need this date difference (Only Date , need not consider time) to do a validation and then decide the flow of the case. Is there a inbuilt validation rule available for this in PEGA?
***Updated by moderator: Lochan to add Categories***
If I understand correctly you might be using Date datatype & not DateTime. So, you need to convert the Date property to DateTime property in an activity or data transform.
Then as suggested earlier you can use the DateTimeDifference function to calculate the difference.
Posted: 4 years ago
Posted: 24 Nov 2017 15:42 EST
Hema Pitchai (HemaP238)
I got it working :) I was adding the expression in a wrong place i.e. in the default value of a control. I modified the data element as a calculated field and added this expression as the formula and it worked. Thank you all for the help!! :)