How to write current date - 1 expression

in standard process, Current date -1

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#DateFunctionsandProperties-minusMonths

1 Like