Discussion

3
Replies
9293
Views
VasilicaN Member since 2016 4 posts
BPM Company
Posted: 4 years ago
Last activity: 3 years 2 months ago
Closed

Compare 2 Dates in Validation rule

Hi,

I want to compare 2 Dates (NOT 2 DateTimes) In a Validation rule. I can't find a function to compare 2 Dates, but only the function CompareDates(DateTime, Datetime) that compares 2 DateTimes. The problem I have is that the properties I want to compare are Date type and this function CompareDates(DateTime, Datetime) will throw an error. I want to replace the properties with new ones of type DateTime and this will work, but sounds like a workaround. There has to be a comparer function also for Dates and not DateTimes, right? P.s. i'm using Pega 7.1.9

Case Management
Moderation Team has archived post
Share this page LinkedIn