以自定义日期格式模式g和ge.mm.dd呈现
Contents
[
Hide
]
Aspose.Cells现在能够呈现类似于g、ge.mm.dd等自定义日期格式模式。请查看附加的源Excel文件(5112361.xlsx)和Aspose.Cells转换的PDF(5112360.pdf)作为参考。
下面的示例代码将转换包含类似于g和ge.mm.dd的自定义格式模式的源Excel文件(5112361.xlsx)成为输出PDF(5112360.pdf)。
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")); |