cancel
Showing results for 
Search instead for 
Did you mean: 

How to write current date - 1 expression

sirisha
New Contributor

in standard process, Current date -1

1 REPLY 1

cjhoward18
Employee
Employee

Do you mean subtracting 1 from a date object?

You can use this expression for example to subtract 1 minute from a date object:

Date.now().minusMinutes(1)

Here is the documentation on all the ‘minus’ functions supported for any granularity of time (hours, days, months, etc)

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439344/Date+Functions+and+Properties#Date...