Hazel finds wrong date in document

Hi
Short question:
Is there a way for Hazel to always correctly detect the last date on a page regardless of it's pattern?
Long details:
I'm trying to rename a bunch of bank documents with the "1st occurrence of a date from the end" within each document (plus reversing the date which works well). For some reason Hazel ommits exactly this occurrence and uses the 2nd from the end or the first from the beginning.
See one of the documents here:
https://ln5.sync.com/dl/59f03a660/whc4p ... c-cgxzed2u
I have tried letting Hazel to "Automatically detect date format" as well as defining the exact patterns "DD.MM.YY" or "DD.MM.YYYY". Neither brings the desired result:
"Automatic" renames to "2021-12-27" (2nd from the bottom)
"DD.MM.YY" renames to "2020-01-01" (wrong year and 1st from the beginning)
"DD.MM.YYYY" renames to 2022-01-01 (1st from the beginning)
Now the next complication: The documents use either of the two patterns DD.MM.YY and DD.MM.YYYY for the last date on the page. I therefore cannot search for DD.MM.YYYY because that wouldn't detect DD.MM.YY.
Last complication: Some documents even use "DD. Name-of-month-in-German YYYY". But we can leave that away for the moment...
Can anyone help?
Short question:
Is there a way for Hazel to always correctly detect the last date on a page regardless of it's pattern?
Long details:
I'm trying to rename a bunch of bank documents with the "1st occurrence of a date from the end" within each document (plus reversing the date which works well). For some reason Hazel ommits exactly this occurrence and uses the 2nd from the end or the first from the beginning.
See one of the documents here:
https://ln5.sync.com/dl/59f03a660/whc4p ... c-cgxzed2u
I have tried letting Hazel to "Automatically detect date format" as well as defining the exact patterns "DD.MM.YY" or "DD.MM.YYYY". Neither brings the desired result:
"Automatic" renames to "2021-12-27" (2nd from the bottom)
"DD.MM.YY" renames to "2020-01-01" (wrong year and 1st from the beginning)
"DD.MM.YYYY" renames to 2022-01-01 (1st from the beginning)
Now the next complication: The documents use either of the two patterns DD.MM.YY and DD.MM.YYYY for the last date on the page. I therefore cannot search for DD.MM.YYYY because that wouldn't detect DD.MM.YY.
Last complication: Some documents even use "DD. Name-of-month-in-German YYYY". But we can leave that away for the moment...
Can anyone help?