Reports - Save File - FileName - DateFormat

Hi All,

I would like to create the filename with yesterdays date, not today. How do I do this??

Can I apply some simple arithmetic within the dateFormat(now(),“yyyyMMdd”) expression?

You can place the dateArithmetic() expression around the now() expression and subtract 1 day.

https://docs.inductiveautomation.com/display/DOC79/dateArithmetic

It would look somewhat like:
dateFormat(dateArithmetic(now(), -1, "days") "yyyyMMdd")

Hi Kvane, Thankyou. It worked… :slight_smile: