We are currently trying to compare a joiner’s onboarding date with the current date using compare timestamp in a IdentityNow workflow. The onboarding date is provided as an input and follows this format: 2020-04-27T16:48:33.597Z (example). To get the current date, we are using $now(), as explained in the JSONata documentation.
However, the comparison always returns false, and we are not sure if we are performing the comparison correctly. We suspect there may be an issue with the format or type conversion, so we’ve also tried different methods listed in Apache Velocity’s DateTool documentation, but none seem to work.
Has anyone encountered a similar issue or can suggest a proper way to handle this timestamp comparison?
Thank you so much for your detailed response and for providing the sample template! I apologize for the delayed reply. I have implemented the Date Compare Transform as you suggested and followed the ISO8601 format. Your explanation has been really helpful, and the issue is now resolved.