Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To implement the 1904 date system in Microsoft Excel (for example, Microsoft Excel 2003):
| Selecting 1904 date system in Microsoft Excel |
|---|
![]() |
See the following sample code on how to achieve this using Aspose.Cells APIs.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "book1.xlsx");
// Initialize a new Workbook
// Open an excel file
const workbook = new AsposeCells.Workbook(filePath);
// Implement 1904 date system
workbook.getSettings().setDate1904(true);
// Save the excel file
workbook.save(path.join(dataDir, "Mybook.out.xlsx"));
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.