Implementieren Sie das 1904 Datensystem

Contents
[ ]

Um das 1904-Datensystem in Microsoft Excel zu implementieren (zum Beispiel Microsoft Excel 2003):

  1. Wählen Sie im Extras-Menü die Option Optionen und wählen Sie den Tab Berechnung.
  2. Wählen Sie die Option 1904-Datensystem aus.
  3. Klicken Sie auf OK.
Auswählen des 1904-Datensystems in Microsoft Excel
todo:image_alt_text
Siehe den folgenden Beispielcode, um dies mit den APIs von Aspose.Cells für Python via .NET zu erreichen.
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(".")
# Initialize a new Workbook
# Open an excel file
workbook = Workbook(dataDir + "book1.xlsx")
# Implement 1904 date system
workbook.settings.date1904 = True
# Save the excel file
workbook.save(dataDir + "Mybook.out.xlsx")