Implementera 1904 års datumsystem

Contents
[ ]

Så här implementerar du 1904-datumsystemet i Microsoft Excel (till exempel Microsoft Excel 2003):

  1. FrånVerktyg menyn, väljalternativ , och väljBeräkning flik.
  2. Välj1904 års datumsystem alternativ.
  3. KlickOK.
Väljer 1904 datumsystem i Microsoft Excel
todo:image_alt_text
Se följande exempelkod om hur du uppnår detta med Aspose.Cells API:er.
// 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");