Using variables in report filenames
2 posts · Closed
Hello,
I just updated to the current release. Years ago when I first used the product, I wrote to ask if there was a way to incorporate variables in the filename of the reports, and there wasn't. Has that changed through the years, and is there a way to do it now?
In particular, I'd like to save weekly and monthly reports incorporating the date in the filename. It's probably not practical to do so with the dailys, but would be useful to have for the less frequent reports.
Thanks,
Anthony
A set of special date-formatting characters is supported in reports saved to a file. You can use any of these tokens, each surrounded by % characters:
- y
- yy
- yyyy
- m
- mm
- mmm
- mmmm
- d
- dd
- ddd
- dddd
- h
- hh
- n
- nn
- s
- ss
For example:
%yyyy%-%mm%-%dd%.txt
will become
2023-01-23.txt