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-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(Implement1904DateSystem.class);
// Initialize a new Workbook
Workbook workbook = new Workbook(dataDir + "Mybook.xlsx");
// Implement 1904 date system
workbook.getSettings().setDate1904(true);
// Save the excel file
workbook.save(dataDir + "OutPut.xls");