Renaming date in file name to the month abbreviation

Bulk Rename Utility How-To's

Renaming date in file name to the month abbreviation

Postby mapo120272 » Fri Nov 18, 2022 9:25 am

I have thousend files with dates in the filename but not in the format I need.
I would like to have the month abbreviation with year in the file name instead of the date (dd-mm-yycc).

An example to clarify:

Current format:
Kingfisher 20-05-2022
Eagle 06-10-2022

Desired format:
Kingfisher (may 2022)
Eagle (october 2022)

How can I do that with this nice application?
mapo120272
 
Posts: 1
Joined: Fri Nov 18, 2022 9:01 am

Re: Renaming date in file name to the month abbreviation

Postby therube » Fri Nov 18, 2022 5:54 pm

You would have to remove the existing date; 20-05-2022.
How, could depend on the layout of your filenames.

If it is only (one_word) (date) (like you've shown), then you could use:

5:Remove -> Crop: After <sp> (type a space in the box after After)

If it were multiple words then something like this might work:

1:RegEx
Code: Select all
Match:  (.*) \d\d-\d\d-\d\d\d\d
Replace:  \1

And then in:

8:Auto Date
Code: Select all
Mode: Suffix
Fmt: Custom
Custom: (%b %Y)
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To