Print Command

Is there a way to include today’s date in the Output File Name? For example, I have a Print Command set to generate a file named “1yr_Rel_v_SPX” but I would like it to include today’s date at the end.

Thank you,
Andrew

Hi Andrew,

Make sure that the command line text does not include -overwrite (if using the Command Line Builder untick the Overwrite Existing File box before copying the text).

The first time the command is run it will just have the file name but when run again it will include the date and time (we use ddmmyyyy date format here ie 28032025 for today but I’m not sure if yours would default to the Windows date format of mmddyyyy).

image