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