diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java b/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java index 77a1b113e8..84885b48d3 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java @@ -201,7 +201,9 @@ public class XLSX2CSV { SharedStrings strings, SheetContentsHandler sheetHandler, InputStream sheetInputStream) throws IOException, SAXException { - //set emulateCSV=true on DataFormatter - it is also possible to provide a Locale + // set emulateCSV=true on DataFormatter - it is also possible to provide a Locale + // when POI 5.2.0 is released, you can call formatter.setUse4DigitYearsInAllDateFormats(true) + // to ensure all dates are formatted with 4 digit years DataFormatter formatter = new DataFormatter(true); InputSource sheetSource = new InputSource(sheetInputStream); try {