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 kodexempel om hur du uppnår detta med Aspose.Cells API:erna.
// 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");