Node.js üzerinden C++ kullanarak 1904 Tarih Sistemi Uygula
Contents
[
Hide
]
Microsoft Excel iki tarih sistemi destekler: 1900 tarih sistemi (Windows için Excel’de varsayılan tarih sistemi) ve 1904 tarih sistemi. 1904 tarih sistemi genellikle Macintosh Excel dosyalarıyla uyumluluk sağlamak amacıyla kullanılır ve Macromce Excel kullanıyorsanız varsayılan sistemdir. Excel dosyalarında 1904 tarih sistemi ayarlamak için Aspose.Cells for Node.js via C++ kullanılabilir.
Microsoft Excel’de (örneğin, Microsoft Excel 2003) 1904 tarih sistemini uygulamak için:
- Araçlar menüsünden Seçenekler‘i seçin ve Hesaplama sekmesini seçin.
- 1904 tarih sistemi seçeneğini belirleyin.
- Tamam‘a tıklayın.
Microsoft Excel’de 1904 tarih sistemini seçme |
---|
![]() |
Bunu, Aspose.Cells API’lerini kullanarak nasıl başarılır gösteren örnek kodu görün.
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"));