capturing file date as variable

I have some folders with thousands of text or PDF files in them. I want to move the files into subfolders like \YYYY\MM\DD using the file date, and keeping the same file name (%o).
What’s the easiest way to do this?

Hello @tlucas,

In case you want to move the files into a subfolder by the Send to Folder Workflow plugin, you can insert something like the following in the Folder field of the Workflow plugin:

C:\Workspace\%y\%m\%d
Variable Name Example value when interpreted
%y Current year (numeric) 2025
%m Current month (numeric) 01
%d Current day (numeric) 23

Sources:

To add to my collegue @Marten , you could use the Folder Listing plugin to get the list if files from the input folder. Part of the information is the file dte, as you requested. Then from a script you can extract the year, month, day from it and use that in variable for the output destination.

Thanks, all. I already added %y%m%d to the paths to organize future jobs. Since organizing the existing files is a one-time need, I realized that it was easier to do in PowerShell,