Match against date extracted from content

Question
Hazel has a very nice feature where it matches files against Date Created, Date Added, Date Last Modified, etc. Hazel also has another feature where you can basically extract variables from the contents of a file to use them later. I, for example, like to match files against the presence of a specific string inside a file.
Now is it possible to match a file against a variable that itself is only present if extracted from the contents of a file?
Example/Use Case
There is a bunch of files with filenames matching a specific pattern: "yyyy-mm-dd TEXT-12 ANYTHING". Let me call the date at the beginning of the filename "FDATE".
Also, all of these files include a date in their contents that I can precisely match against with Hazel. Let me call this date "CDATE" for now. CDATE does not necessarily equal to FDATE.
The rule that I would like to create (but I do not know how) is:
If CDATE is not today and not in the last 2 weeks, add the tag "old".
Is this possible? And how would I do that?
Thank you!
Hazel has a very nice feature where it matches files against Date Created, Date Added, Date Last Modified, etc. Hazel also has another feature where you can basically extract variables from the contents of a file to use them later. I, for example, like to match files against the presence of a specific string inside a file.
Now is it possible to match a file against a variable that itself is only present if extracted from the contents of a file?
Example/Use Case
There is a bunch of files with filenames matching a specific pattern: "yyyy-mm-dd TEXT-12 ANYTHING". Let me call the date at the beginning of the filename "FDATE".
Also, all of these files include a date in their contents that I can precisely match against with Hazel. Let me call this date "CDATE" for now. CDATE does not necessarily equal to FDATE.
The rule that I would like to create (but I do not know how) is:
If CDATE is not today and not in the last 2 weeks, add the tag "old".
Is this possible? And how would I do that?
Thank you!