Reverse folder date

Advanced Renamer forum
#1 : 06/06-13 22:24
BG
BG
Posts: 1
Hello,

Though Sony makes excellent DSLRs, unfortunately their mediocre software saves folders using only one date format option: MM_DD_YYYY i.e starting with the month!!!

Since this creates a whole mess in sorting the folders, I am wondering if I can setup BRU to read the current folder name and reverse it i.e change it to YYYY_MM_DD...


06/06-13 22:24
#2 : 07/06-13 12:16
Kim Jensen
Kim Jensen
Administrator
Posts: 775
Reply to #1:
The simplest way is to map the pattern to a regular expression. Add a Replace Method and configure it like this:

Text to be replaced: (\d\d)_(\d\d)_(\d\d\d\d)
Replace with: \3_\2_\1
Use regular expressions: Checked

I hope this works for you


07/06-13 12:16
#3 : 07/06-13 13:39
Stefan
Stefan
Posts: 264
Reply to #2:

Kim> Replace with: \3_\2_\1

Kim is right, that will reverse the date,

FROM:
MM_DD_YYYY
TO:
YYYY_DD_MM






but from the given examples the user wants to reorder the date:

FROM:
MM_DD_YYYY
TO:
YYYY_MM_DD

Replace with: \3_\1_\2





.

----------
If this tool had saved you time, perhaps you want to donate an Dollar to Kim?
See http://www.advancedrenamer.com/download >>> [Donate] button.


07/06-13 13:39 - edited 07/06-13 13:41