Implementar el sistema de fechas de 1904

Contents
[ ]

Para implementar el sistema de fecha 1904 en Microsoft Excel (por ejemplo, Microsoft Excel 2003):

  1. Desde elHerramientas menú, seleccioneOpciones y seleccione elCálculo pestaña.
  2. Selecciona elsistema de fecha de 1904 opción.
  3. Hacer clicDE ACUERDO.
Selección del sistema de fecha de 1904 en Microsoft Excel
todo:imagen_alternativa_texto
Consulte el siguiente código de ejemplo sobre cómo lograr esto mediante las API Aspose.Cells.
// 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");