Reformatting Date String?

Advanced Renamer forum
#1 : 29/06-19 19:24
newoski
newoski
Posts: 4
Hi,

I have a collection of files that I'm trying to reformat the naming to better reflect the dates. The current naming convention is below:

foo_010815_foo_foo

Which corresponds to:
foo_daymonthyear_foo_foo

Is there any way to change the name to:

foo_yeardaymonth_foo_foo
(foo_20150801_foo_foo)

Or even better:

foo_2015-08-01_foo_foo

Thanks for any help!



29/06-19 19:24 - edited 29/06-19 19:26
#2 : 29/06-19 20:03
David Lee
David Lee
Posts: 1125
Replace: (.*)(\d\d)(\d\d)(\d\d)
with: \120\4-\3-\2
Use regular expressions

See www.advancedrenamer.com/user_guide/regular_expresions


29/06-19 20:03