I found a solution. We can use a timer in a workflow.


The following script worked:



answer = gs.dateDiff(gs.nowDateTime(), current.variables.end_date_change.getDisplayValue(), true);  



Thanks


View solution in original post