Page 1 of 1

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

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

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

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

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

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

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

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