This would be optional but would help in scenarios like https://stackoverflow.com/questions/42259859/java-excel-to-csv-date-conversion-issue-with-apache-poi/42285272#42285272 XSLX is ok with 2 digit year formats because we have the raw date in number format. If someone uses XLSX2CSV to write data to CSV then the formatted date in the CSV is all that's kept. DataFormatter already has an emulateCSV option - maybe this could be used to control the optional behaviour to modify the date format to have 4 digits in the year. Alternatively, we can add a new parameter.
One existing API that may be useful is https://poi.apache.org/apidocs/dev/org/apache/poi/ss/usermodel/DataFormatter.html#addFormat-java.lang.String-java.text.Format-
Added r1895326 - DataFormatter now has a setUse4DigitYearsInAllDateFormats(boolean) method with default of false