Discussion

3
Replies
9893
Views
Vasilica Nae (VasilicaN)
Accenture
Pega Developer
Accenture
RO
VasilicaN Member since 2016 4 posts
Accenture
Posted: May 25, 2016
Last activity: July 24, 2017
Posted: 25 May 2016 8:35 EDT
Last activity: 24 Jul 2017 7:59 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.