Change date order

Bulk Rename Utility How-To's

Change date order

Postby EduBoff » Sun Jun 25, 2023 7:26 pm

How can I change the order of Dates in file names from DD.MM.YYYY to YYYY.MM.DD? Files have other names before dates, like "ACIV - 23.06.2023"
EduBoff
 
Posts: 1
Joined: Sun Jun 25, 2023 7:20 pm

Re: Change date order

Postby Luuk » Mon Jun 26, 2023 4:35 am

With RegEx(1) having a checkmark inside for "v2", the "Match" and "Replace" can be like...
\b(\d\d)(\.\d\d)(\.)(20\d\d)\b$
$4$2$3$1

If the dates arent always at the very end, can remove $ to conduct only the first-date.
After removing $, can also prefix the "Match" with \G.*\K to conduct only the last-date.
Or could also change $ --> /g to conduct several-dates inside of the same filename.
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To