Compare TimeStamps Failing

I am using Define Comparison function to determine whether it validate timestamp. It confirm now() and end date as validate date. But when i compare timestamp currenttime is after end date it is failing but it also even fail when for currenttime is before end date.

For Example: currentTime:2026-08-03T14:45:29.997Z

defineHOLDEndDate: 2025-04-05T00:00:00.000Z

$.dv1.currentTime is after $.dv1.defineHOLDEndDate

What could be reason?

Hello @rengarajan75,

Hope End date is in ISO8601 format. Do you have a variable defined to get the current date and time using $.now() function?

Edit: I have tested using the value that you have provided and its working for me. I have tested ‘Is Before’ and ‘Is After’ operator

Yes, the dates are in ISO 8601 format, which can be verified from the example. Define a variable with an initial value of 2025-03-06, add 30 days to it, and then use the resulting date for the comparison. Both dates have been successfully validated as valid date values but date comparison process fails.

Thanks. Found the reason. I was typing the variable for compare in to Define Comparison SailPoint was considering the value. When i select the value from selection boxes it worked. Thanks.