How to incorporate the date into the report filenames

Started by Anthony

Anthony

How to incorporate the date into the report filenames   23 January 2023, 14:12

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 file name. It's probably not practical to do so with the dailys, but would be useful to have for the less frequent reports.

Thanks
Anthony
SoftPerfect Support forum - Ann avatar image
Ann

Re: How to incorporate the date into the report filenames   23 January 2023, 14:27

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

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 **      **  **    **  ********  **     **  ******** 
 **  **  **  **   **   **        **     **  **       
 **  **  **  **  **    **        **     **  **       
 **  **  **  *****     ******    **     **  ******   
 **  **  **  **  **    **         **   **   **       
 **  **  **  **   **   **          ** **    **       
  ***  ***   **    **  ********     ***     **       

Message: