تقديم نمط تاريخ مخصص g وge mm dd
Contents
[
Hide
]
أصبح بإمكان Aspose.Cells الآن تقديم أنماط صيغ التاريخ المخصصة مثل g، ge.mm.dd وما شابه. يرجى التحقق من ملف جدول البيانات المرفق [ملف Excel المصدر] (5112361.xlsx) و [ملف PDF المحول] (5112360.pdf) بواسطة Aspose.Cells للرجوع إليه.
يقوم الكود النموذجي التالي بتحويل [ملف Excel المصدر] (5112361.xlsx) الذي يحتوي على قيم تاريخية بأنماط صيغ مخصصة مثل g و ge.mm.dd إلى [PDF الناتج] (5112360.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"); |