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}-(0a1-9]|1"0-2])-(001-9]||12]-0-9]|3[01])$",toString(ATTRIBUTE_1, "MM-dd-yyyy"))