Date 2017-07-00 recognized as 2017-06-00

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

Moderator: Mr_Noodle

Date 2017-07-00 recognized as 2017-06-00 Tue Jul 25, 2017 5:06 pm • by speedy_99
Hi,

I am using 2017-07-00 date format to recognize month with no specific day.

But if I use 00 the month is automatically reduced by one month.

2017-07-00 --> 2017-06-00
2017-05-00 --> 2017-04-00

If the day is between 01 and 31 it works "normally" and 2017-07-00 --> 2017-07-00

Is this a feature or fault? :?:
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

Re: Date 2017-07-00 recognized as 2017-06-00 Wed Jul 26, 2017 10:42 am • by Mr_Noodle
Is 00 in red because it is literal text and not a date token? Can you send me examples of the text being matched? Or even better, could you export your rule and email it in to support?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Date 2017-07-00 recognized as 2017-06-00 Wed Jul 26, 2017 12:47 pm • by speedy_99
Mr_Noodle wrote:Is 00 in red because it is literal text and not a date token? Can you send me examples of the text being matched? Or even better, could you export your rule and email it in to support?



00 (zero zero) is only red to highlight it for the readers of the forum. It's only the day. No token.

In my documents I use a date like 2017-07-00 to determine any day of July.

So the PDF will renamed and starts with a "complete" date at we beginning of the name. Better for my DMS.
"2017-07-00+++Reciept+++XYZ"

Inside the PDF the date I am looking for, is framed by "PH" to find only this unique date of the doc.
PH2017-07-00PH and Hazel searchs for "contain match" PHDate-tokenPH.

The Date-Token is 1999-12-31.

"Automatically detect date format" is not working in my example.
Perhaps of "00 (zero zero)" instead of 01-31 or because it's framed?



https://www.dropbox.com/s/r5073j207wv2k ... rules?dl=0
https://www.dropbox.com/s/ca9gnipnsazb5 ... e.pdf?dl=0

Rule "Minijobber Stundennachweis - Date_Name, Vorname_Doc-Typ --> Move --> PER-pruefen"

You will find PH2017-07-00PH in the footer of the PDF.
speedy_99
 
Posts: 58
Joined: Thu Feb 12, 2015 11:00 pm

Re: Date 2017-07-00 recognized as 2017-06-00 Thu Jul 27, 2017 10:48 am • by Mr_Noodle
I'm still not entirely clear here on the whole 00 aspect. Could you please email support with the rule?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support