Earlier quoted context omitted.
Tangent, but another interesting problem with date parsing besides lack of standardization is that it's ridiculously context-sensitive. For example, if I schedule an event for Oct 1-Jan 1 right now, the most likely (least surprising) parse would be Oct 1, 2021 through January 1, 2022. Which is both surprising because parsing Oct 1 depends on the current date, and because the parsing of Jan 1 depends on the parse of O…
Parsing anything that was originally developed by humans writing it on paper (or clay tablet, or whatever) is a nightmare. Natural means chaotic. If your CSV file contains any field entered by humans AWK isn't going to be powerful enough to parse it at scale. Someone somewhere is going to have the name 'Mbat"a, Sho,dlo' in some bizarre ass romanization (and this assume you're not accepting Unicode, which is a whole o…
'Mbaät\"a, Sho,dló'
"a" followed by "ä" because some suggest encoding umlauts as double characters. When you decode that does it go first or second?
Answer: use Unicode.
Throw an escape character in there, before the quote character just to make it interesting.
This is a good time for everyone to review: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...