Hey yβall,
I was wondering if anyone had a quality rule or advice on how to construct a quality rule to check a date type field for formatting. I know there is the βmatchesβ function for strings and that you can convert a date field to a string using βtoStringβ, but that requires you to specify a format, which invalidates the point of the rule.
The desired format is βMM-dd-yyyyβ, as shown in what Iβve got so far.
matches("^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",toString(ATTRIBUTE_1, "MM-dd-yyyy"))