Benutzerdefiniertes Datum Format g und ge mm tt
Contents
[
Hide
]
Aspose.Cells kann jetzt benutzerdefinierte Datumsformatmuster wie g, ge.mm.tt und ähnliche rendern. Bitte überprüfen Sie die angehängte Quellexceldatei und die konvertierte PDF-Datei von Aspose.Cells zu Ihrer Referenz.
Der folgende Beispielcode wandelt die Quellexceldatei um, die Datumsangaben mit benutzerdefinierten Formatmustern wie g und ge.mm.tt enthält, in eine Ausgabedatei im PDF-Format um.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const AsposeCells = require("aspose.cells.node"); | |
// The path to the documents directory. | |
const dataDir = path.join(__dirname, "data"); | |
const filePath = path.join(dataDir, "SourceFile.xlsx"); | |
// Loads the workbook which contains hidden external links | |
const workbook = new AsposeCells.Workbook(filePath); | |
workbook.save(path.join(dataDir, "CustomDateFormat_out.pdf")); |