Question
Patient advocate foundation
IN
Last activity: 31 May 2024 9:37 EDT
Both date and Datetime values are coming in same datetime property unable to compare with date property
Hi
We have done migration from pega6 to pega8,we have a property called LookBackDate which is DateTime property in pega 8.
But data which is migrated from pega 6 has date value. So the property contains both date values and datetime values in LookBackBack property.
We have a validation in that we have used function to compare LookBackDate with another date property.
@defaultCompareDates(.DOSFromDate,@FormatDateTime(pyWorkCover.LookBackDate,"yyyyMMdd","", ""))<0 if it true error will be shown we kept this expression in when rule
vSo values coming in date time works fine, but if value comes in date format this expression not validating.
Can any one help to validate both scenarios in same expression or how to achieve this.
Thanks,
Ajay