Page 1 of 1

Bulk date renaming

PostPosted: Sat Jul 04, 2020 11:28 am
by HalHoward
Hello how do I bulk rename "YYYYMMDD" to "DD-MM-YYYY" I was looking at other topics on this subject but I don't understand how the coding works for renaming dates, cheers.

Re: Date renaming

PostPosted: Mon Jul 06, 2020 11:20 am
by therube
1:RegEx

And you would look for a series of 8 digits, \d\d\d\d\d\d\d\d, & then split out the parts separately, (\d\d\d\d)(\d\d)(\d\d).
Then it's simply a matter of rearranging the parts (& adding dashes).
So, \3-\2-\1, gives you your DD-MM-YYYY ordering.

Now all that changes once the rest of your file name is taken into consideration.

"Generally" something like this may work:

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

Match everything up to your date
Match your date (split into m-d-y parts)
Match everything else

Rearrange.