以自定义日期格式模式g和ge.mm.dd呈现
Contents
[
Hide
]
Aspose.Cells for Python via .NET 现已支持渲染类似 g、ge.mm.dd 等的自定义日期格式。请查看附加的源 Excel 文件和转换后的 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
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
workbook = Workbook(dataDir + "SourceFile.xlsx") | |
workbook.save(dataDir + "CustomDateFormat_out.pdf") |