Optional date padding?

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Optional date padding? Mon Jul 15, 2013 5:00 am • by GeekNeck
Hi all,

I'm trying to have Hazel recognize my bank statement. The text I am expecting find is this:
Code: Select all
for June 1, 2013 to June 30, 2013

My rule, which had 2 padded day-of-month, was not working. I switched the first date to use a non-padded day-of-month and Hazel found the file. I understand why that is, but is the rule going to fail to find a statement where the start date is a 2-digit day? For example, will
Code: Select all
for June 30, 2013 to July 30, 2013

not be found? Any thoughts would be greatly appreciated!

Paul
GeekNeck
 
Posts: 27
Joined: Sat Aug 11, 2012 7:26 am

Re: Optional date padding? Mon Jul 15, 2013 12:16 pm • by Mr_Noodle
In the case of one-digit, that only specifies the minimum number of digits. So it will recognize 1 as well as 10.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Optional date padding? Mon Jul 15, 2013 12:30 pm • by GeekNeck
OK, so I use the single digit unless I know for a fact that the number will be zero-padded. Thanks!

BTW, I love the new date matching!!!!
GeekNeck
 
Posts: 27
Joined: Sat Aug 11, 2012 7:26 am


Return to Open Discussion

cron