Page 1 of 1

Problem Date Matching in Filename

PostPosted: 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?

Re: Problem Date Matching in Filename

PostPosted: 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.

Re: Problem Date Matching in Filename

PostPosted: 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.

Re: Problem Date Matching in Filename

PostPosted: 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.