1904年日付システムを実装する

Contents
[ ]

Microsoft Excel(例えばMicrosoft Excel 2003)で1904年日付システムを実装するには:

  1. ツールメニューからオプションを選択し、計算タブを選択します。
  2. 1904年日付システムオプションを選択します。
  3. OK をクリックします。
Microsoft Excelで1904年日付システムを選択
todo:image_alt_text
これを実現するためのサンプルコードをAspose.Cells for Python via .NET APIでご覧ください。
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")