Benutzerdefiniertes Datum Format g und ge mm tt
Contents
[
Hide
]
Aspose.Cells für Python via .NET ist jetzt in der Lage, die benutzerdefinierten Datumsformatmuster wie g, ge.mm.tt und ähnliche zu rendern. Bitte überprüfen Sie die angehängte Quell-Excel-Datei und die konvertierte PDF mit Aspose.Cells zu Referenzzwecken.
Der folgende Beispielcode wandelt die Quellexceldatei um, die Datumsangaben mit benutzerdefinierten Formatmustern wie g und ge.mm.tt enthält, in eine Ausgabedatei im PDF-Format um.
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") |