Datumsangaben mit Node.js über C++ in japanische Daten umwandeln

Contents
[ ]

Aspose.Cells bietet eine Möglichkeit, Gregorianische Daten in japanische Daten umzuwandeln. Während dieser Umwandlung werden auch Änderungen in der Ära berücksichtigt. Der folgende Codeausschnitt konvertiert die Quell-Excel Datei mit Gregorianischen Daten in eine Ausgabe-PDF mit japanischen Daten, wie im Bild unten gezeigt.

todo:image_alt_text

const path = require("path");
const AsposeCells = require("aspose.cells.node");

// Source directory
const sourceDir = path.join(__dirname, "data");

// Output directory
const outputDir = path.join(__dirname, "output");

const options = new AsposeCells.LoadOptions(AsposeCells.LoadFormat.Xlsx);
options.setLanguageCode(AsposeCells.CountryCode.Japan);
options.setRegion(AsposeCells.CountryCode.Japan);

const workbook = new AsposeCells.Workbook(path.join(sourceDir, "JapaneseDates.xlsx"), options);
workbook.save(outputDir + "JapaneseDates.pdf", AsposeCells.SaveFormat.Pdf);