Can you compare two date variables in workflow editor if core activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 03:36 PM - edited 07-24-2024 03:38 PM
Hello,
I am trying to compare two date variables in the workflow editor to see if the date is more than 30 days but it is not showing me a second variable field. Is there any way to do this? This is from the Core Activies > Condition > If
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 03:41 PM
Hello,
It depends on where the two variables are residing and on which table is the Workflow running on? Did you try using code similar to this -
gs.dateDiff(date1, date2, true) > 30 * 24 * 60 * 60 * 1000 //(milliseconds)
Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 03:46 PM
Not view the condition builder, but if you check the Advanced box and write a script you will have access to every variable and server-side GlideDateTime methods