实施 1904 日期系统

Contents
[ ]

要在 Microsoft Excel 中实施 1904 日期系统(例如 Microsoft Excel 2003):

  1. 来自工具菜单,选择选项 ,然后选择计算标签。
  2. 选择1904年日期系统选项。
  3. 点击好的.
在 Microsoft Excel 中选择 1904 日期系统
待办事项:图片_替代_文本
请参阅以下示例代码,了解如何使用 Aspose.Cells API 实现此目的。
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Initialize a new Workbook
// Open an excel file
Workbook workbook = new Workbook(dataDir+ "book1.xlsx");
// Implement 1904 date system
workbook.Settings.Date1904 = true;
// Save the excel file
workbook.Save(dataDir+ "Mybook.out.xlsx");