呈现自定义日期格式模式 g 和 ge mm dd
Contents
[
Hide
]
下面的示例代码将源文件其中包含具有自定义格式模式的日期值,例如 g 和 ge.mm.dd输出 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"); |