[bug-65703] new DataFormatter method: setUse4DigitYearsInAllDateFormats - defaults to false

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-25 12:49:21 +00:00
parent 1896253fb5
commit 9ed220fd75
1 changed files with 3 additions and 1 deletions

View File

@ -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 {