Extracting the 1st date in a scanned document

Hi
I've just bought scansnap in an effort to become paperless at home and am using Hazel to automate the filing process once the document has been OCR'd
I want to extract the first occurrence of a date in a document, whatever the format of the date and then use that date to form part of the name of the document. I can create a number of rules (16 in total to cover all the custom date permutations) but if one of the earlier rules in the list finds a date in the document that is not the first date that is the date that is passed forward to rename the document.
I apologise if this is a simple task and I am missing something obvious or has already been answered elsewhere.
Thanks in advance
John
I've just bought scansnap in an effort to become paperless at home and am using Hazel to automate the filing process once the document has been OCR'd
I want to extract the first occurrence of a date in a document, whatever the format of the date and then use that date to form part of the name of the document. I can create a number of rules (16 in total to cover all the custom date permutations) but if one of the earlier rules in the list finds a date in the document that is not the first date that is the date that is passed forward to rename the document.
I apologise if this is a simple task and I am missing something obvious or has already been answered elsewhere.
Thanks in advance
John