Struggling with Date Codes

No matter what I try I cannot get Hazel to pick out the correct dates in certain PDF statements.
My rules start first with text that is in the name of the file I download
full name contains then the text that is in the filename
Then I try to add a date code using contents contain match.
The date in the PDF is formatted like this
"Statement Period Nov 30 - Dec 31, 2019"
That is the first place a date appears in the PDF. However, later in the file there are dates like this
Tax Statements by Feb. 15,
12/04
08/02/1997
Once an item matches I want to rename it with a different date pattern 1999,-,12,-,31_then text and move the file to a folder for that entity's statements. In the example above the date Hazel should pull out is Dec 31, 2019 and then reformat to 2019-12-31
Things I have tried to get the date to be found included setting the date string to be "Statement Period" then anything then - then the date in format Dec, year and set for the first instance. I get errors that it does not match. No matter what I do I cannot find a set of parameters that match the date properly by trying to add in the text it should look for to ensure it gets the correct date.
If I set it to finding the date automatically with the date token as the only thing I am trying to match then it always gets the 08/02/1997 date and renames the files to that incorrect date.
If I try to count from the end and thus skipping the 1997 date it gets the date as November 30 not the December date
Help hasn't been particularly helpful since according to the date matching sections I should be getting the correct date.
Where do I go from here to get this working?
My rules start first with text that is in the name of the file I download
full name contains then the text that is in the filename
Then I try to add a date code using contents contain match.
The date in the PDF is formatted like this
"Statement Period Nov 30 - Dec 31, 2019"
That is the first place a date appears in the PDF. However, later in the file there are dates like this
Tax Statements by Feb. 15,
12/04
08/02/1997
Once an item matches I want to rename it with a different date pattern 1999,-,12,-,31_then text and move the file to a folder for that entity's statements. In the example above the date Hazel should pull out is Dec 31, 2019 and then reformat to 2019-12-31
Things I have tried to get the date to be found included setting the date string to be "Statement Period" then anything then - then the date in format Dec, year and set for the first instance. I get errors that it does not match. No matter what I do I cannot find a set of parameters that match the date properly by trying to add in the text it should look for to ensure it gets the correct date.
If I set it to finding the date automatically with the date token as the only thing I am trying to match then it always gets the 08/02/1997 date and renames the files to that incorrect date.
If I try to count from the end and thus skipping the 1997 date it gets the date as November 30 not the December date
Help hasn't been particularly helpful since according to the date matching sections I should be getting the correct date.
Where do I go from here to get this working?