Date matching range over end of month

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

Moderator: Mr_Noodle

Date matching range over end of month Wed Jul 30, 2014 7:56 am • by manofwy
I have a file that arrives every Wednesday. I can successfully match the date to rename the file every week unless the date range spans the end of the month. For example, most dates in the file content are in the format July 2-8, 2014. But, at the end of the month the date range is July 30 - August 5, 2014.

My matching rule is Contents contain match xdaterange where xdaterange is defined as [December] [...] [31], [1999]. So, it renames the first file to 2014-07-08. The second one renames to 2014-07-05 with the incorrect month. Because the content line changes by adding the second month name only when spanning end of month, I do not have a solution to parse the date. Any ideas?
manofwy
 
Posts: 11
Joined: Fri Mar 16, 2012 10:26 am
Location: White Bear Township, MN

Re: Date matching range over end of month Thu Jul 31, 2014 12:06 pm • by Mr_Noodle
Try having another rule before this one which matches the regular "month day, year". I assume you want it to match August 5 in that case?
Mr_Noodle
Site Admin
 
Posts: 11277
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Date matching range over end of month Tue Aug 05, 2014 1:33 pm • by manofwy
Of course, that was too easy.

Now to copy the rules I modified today to my other machine. Any update on identifying those? viewtopic.php?f=4&t=1640#p8262
manofwy
 
Posts: 11
Joined: Fri Mar 16, 2012 10:26 am
Location: White Bear Township, MN

Re: Date matching range over end of month Tue Aug 05, 2014 1:59 pm • by Mr_Noodle
Not at the moment. When you export the rules, you export them for the whole folder as a single rule set.
Mr_Noodle
Site Admin
 
Posts: 11277
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support