How to assign yesterday's date to a variable?

I'm trying to log yesterday's date to a file. How I assign yesterday's date to variable?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.