Hello,
we run many jobs weekly and need to name output files in naming convention like Name_<year>_<cw>.csv, where cv is calendar week and year is a year of that week. Mostly we run scripts for previous (complete week). I would suggest to create new built in variable last week, that would return complete previous week. The best would be to have an option, how to format output (week number of last week - with leading zero, year of last week, start day (first day of last week), end day (last day of last week), first working day of last week, last working day of last week).
Example: On 14.2.2020 I use this function with output formatting year_cw and I'll get 2020_06.
Example 2: On 2. 1. 2020 I use this function with output formatting year_cw and I'll get 2019_52.
With current variables this could not be done effectively (scripting required, as seen here:
https://www.visualcron.c....aspx?g=posts&t=2199 ). The only option is to get current week number, but this makes troubles when years change.
Thank you.