Date Expression in Historical Transaction

I can make an expression in my historical transaction that is =now() and it assigns the current date and time. However, I would like the expression to assign the current date - 1 day. Can someone help me with this expression?

addDays(now(), -1) should work?

1 Like

Works !

Thanks