Renaming - Date/time manipulation

Advanced Renamer forum
#1 : 28/11-23 18:42
Eng.DarkAlchemist
Eng.DarkAlchemist
Posts: 10
Hi team,
My files have the following format in the name: DMMYYYY (D - day, M - month, Y - year). i.e: 13022023. I must change to the format YYYYMMDD. Is there any way to solve this?
Is it possible to convert <word:1> to <Time:yyyymmdd>? If so, how?
Or how can I use regular expression?


28/11-23 18:42
#2 : 29/11-23 20:37
Miguel
Miguel
Posts: 136
Reply to #1: Hi.
Using the Move option, twice, you can conver the ddmmyyy to yyyymmdd.

First Move:
Move from: 1
Move count: 4
Move to: 5
This will move the ddmm four positions and yyyy will be first.

Second Move:
Move from: 5
Move count: 2
Move to: 7
This will move dd to last.
The result will be yyyymmdd


29/11-23 20:37
#3 : 30/11-23 13:26
Miguel
Miguel
Posts: 136
ºReply to #2: I have found an easy way.

Replace: (\d\d)(\d\d)(\d\d\d\d)

Replace with: ${3}-${2}-${1}

Use regular expressions



30/11-23 13:26 - edited 30/11-23 13:27