Implementera 1904 Datumsystem

Contents
[ ]

För att implementera 1904 datumsystemet i Microsoft Excel (till exempel Microsoft Excel 2003):

  1. Från menyn Verktyg väljer du Alternativ och väljer fliken Beräkning.
  2. Välj alternativet 1904 datumssystem.
  3. Klicka på OK.
Välja 1904-datumssystem i Microsoft Excel
todo:image_alt_text
Se följande exempel på kod för att åstadkomma detta med Aspose.Cells för Python via .NET API:er.
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")