Render Custom Date Format Pattern g and ge mm dd
Contents
[
Hide
]
Aspose.Cells for Python via .NET is now able to render the custom date format patterns like g, ge.mm.dd and similar. Please check the attached source excel file and the converted PDF by Aspose.Cells for your reference.
The following sample code converts the source excel file which contains date values with custom format patterns like g and ge.mm.dd into output PDF.
This file contains 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") |