Implementieren Sie das 1904-Datumssystem

Contents
[ ]

So implementieren Sie das 1904-Datumssystem in Microsoft Excel (z. B. Microsoft Excel 2003):

  1. Von demWerkzeug Menü, auswählenOptionen , und wählen Sie die ausBerechnung Tab.
  2. Wähle aus1904 Datumssystem Möglichkeit.
  3. KlickenOK.
Auswahl des Datumssystems 1904 in Microsoft Excel
todo: Bild_alt_Text
Im folgenden Beispielcode erfahren Sie, wie Sie dies mit Aspose.Cells-APIs erreichen.
// 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");