Date matching question

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Date matching question Fri Sep 28, 2018 10:25 am • by Drifter
Hi guys,

I'm trying to rename files with FileName_July_2018.extension to FileName_201807.extension.

So I have a name match check for customdate (using month_year) then do a rename with pattern name_customdate.extension.
The files match fine, except they come out to be FileName_July_2018_201807.extension.

How do I tell it to rename with pattern of name minus the date that matched, then add the new formatted date behind it?
Drifter
 
Posts: 10
Joined: Thu Dec 29, 2016 10:20 am

Re: Date matching question Fri Sep 28, 2018 11:42 am • by Mr_Noodle
Create another custom attribute to match the part of the name before the date. Then use the two custom attributes together to construct the new name.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support