mirror of https://github.com/apache/poi.git
[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:
parent
1896253fb5
commit
9ed220fd75
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue