Can't match date in Apple Pages.app documents

I have used Hazel quite a bit for text files (BBEdit) and also electronic PDF files.
But I have just started using it with Pages.app files, and am having trouble with date matching.
i.e. the rule fails in the Preview function, if I use
Contents | contain match | Custom Date
If I copy and paste the Pages.app document content (which is mostly styled text and no graphics) into a text file in BBEdit, then I the above rule will match, so I know that the Custom Date bit should work.
And strangely, in the Pages.app document, if I type the date directly, the rule will also work. i.e.:
Contents | contain | 23 Dec 1995
But I would like to extract the date and use it to rename the file, so would prefer that the contain match work.
Just wondering if anyone else has encountered this and has a solution. I have tried several Pages documents with various different date formats, and different matching string arrangements, without success. Sorry if this has been asked before. I searched. Thanks.
Edit: Hazel 4.0.9, macOS 10.12.4, Pages 6.1.1
But I have just started using it with Pages.app files, and am having trouble with date matching.
i.e. the rule fails in the Preview function, if I use
Contents | contain match | Custom Date
If I copy and paste the Pages.app document content (which is mostly styled text and no graphics) into a text file in BBEdit, then I the above rule will match, so I know that the Custom Date bit should work.
And strangely, in the Pages.app document, if I type the date directly, the rule will also work. i.e.:
Contents | contain | 23 Dec 1995
But I would like to extract the date and use it to rename the file, so would prefer that the contain match work.
Just wondering if anyone else has encountered this and has a solution. I have tried several Pages documents with various different date formats, and different matching string arrangements, without success. Sorry if this has been asked before. I searched. Thanks.
Edit: Hazel 4.0.9, macOS 10.12.4, Pages 6.1.1