I have a character column called BIRTH_DT, where all the values are stored as DDMMYY.
Example values:
"240578"
"210388"
"321284"
"010295"
"300594"
I want to extract all the values that aren't stored in a correct date format/syntax. So for example, the value "321284" would be extracted.
I could just do a substring of the first two sets of numbers and check that the day is between 01-31, and the month between 01-12, but that would a cheap solution with plenty of room for error.
Although this kind of date quality validation must be an incredibly frequent thing to do, it's surprisingly hard to find any good advice about it on Google. Perhaps I'm not a particularly good Googler. Any advice would be appreciated, thanks. 