Forum Discussion

alanphamvistra4's avatar
alanphamvistra4
Frequent Visitor
3 years ago
Solved

PQL Equation to Find Difference between Dates is Returning both Positive and Negative Values

I have the follwing Custom Column Equation:

if [Overall Status] = "Submitted for Review" then DateTime.LocalNow() - [Submit Date] else [Review Date] - [Submit Date])

 

All of the Submit Dates are in the past, so I should get only positive values or 0. Some of the records are returning negative values even when the Submit Date is years in the past. How can I fix it to only return postive values?

1 Reply