Thanks. That works but it's not flexible for other situations (which I intentionally didn't includ in the initial post). How could I modify it if the date is only 7 char instead of 8 (9302011 instead of 09302011) or if it had separators (. or -)? With this as a template, I could modify it to handle these different scenarios and then put them in a single button...
@Leo
I am trying to understand this (I just don't understand RegExp) and trying to do something similar, but:
from: Recipient Created Tax Invoice - 01-07-2020.pdf
to: Recipient Created Tax Invoice - 2020.07.01.pdf
Date format of the file is dd-mm-yyyy
I am trying to reformat so the files can be sorted by date. I have tried playing around with your answer, but it never ends well for me
(why do most people insist on manually naming/creating automated file output putting the day first so date-based files are unsortable?