Problem Date Matching in Filename

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

Moderator: Mr_Noodle

Problem Date Matching in Filename Sun Mar 23, 2014 2:57 pm • by UFGrayMatter
I have a filename: ATT_637407780_20131212.pdf

I'm matching 3 things:
1) it's a PDF
2) it starts with ATT_

The first two obviously work well.

When I throw in a Date Match it doesn't work.

I'm using:
Name Matches with the Date Match Token (1999)(12)(31) thinking it will match the end of the name - 20131212 but it fails.

Thoughts?
UFGrayMatter
 
Posts: 12
Joined: Sun Mar 23, 2014 2:22 pm

Re: Problem Date Matching in Filename Mon Mar 24, 2014 2:05 pm • by Mr_Noodle
Do you have the right number of digits specified in the pattern. I'm guessing the file names would require two digits for month and day (so "1" is "01"). In such a case, you need to make sure the month and day tokens are set to requires two digits which is indicated by the underline under them.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Problem Date Matching in Filename Mon Mar 24, 2014 9:18 pm • by UFGrayMatter
I do have the correct one chosen. I changed back and forth between the two thinking maybe I had them switched, but no difference.
UFGrayMatter
 
Posts: 12
Joined: Sun Mar 23, 2014 2:22 pm

Re: Problem Date Matching in Filename Wed Mar 26, 2014 12:12 pm • by Mr_Noodle
Is the date match token the only thing in the pattern? If so, then that won't work. The pattern when doing a name match must account for everything in the name. So, you need to specify things to account for everything before and after the date. That can be straight text (like "ATT_") or the various pattern tokens but the whole text has to be accounted for.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support