Render Custom Date Format Pattern g and ge mm dd
Contents
[
Hide
]
Aspose.Cells 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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
Workbook workbook = new Workbook(dataDir + "SourceFile.xlsx"); | |
workbook.Save(dataDir + "CustomDateFormat_out.pdf"); |