1904 Tarih Sistemi Uygulama
Contents
[
Hide
]
Microsoft Excel, 1900 tarih sistemi (Windows için Excel’de varsayılan olarak uygulanan tarih sistemi) ve 1904 tarih sistemi olmak üzere iki tarih sistemi destekler. 1904 tarih sistemi, genellikle Macintosh Excel dosyalarıyla uyumluluk sağlamak için kullanılır ve Excel’i Macintosh için kullanıyorsanız varsayılan sistemdir. Aspose.Cells kullanarak Excel dosyaları için 1904 tarih sistemini ayarlayabilirsiniz.
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 sistemi seçimi
Bunu, Aspose.Cells API’lerini kullanarak nasıl başarılır gösteren örnek kodu görün.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(Implement1904DateSystem.class); | |
// Initialize a new Workbook | |
Workbook workbook = new Workbook(dataDir + "Mybook.xlsx"); | |
// Implement 1904 date system | |
workbook.getSettings().setDate1904(true); | |
// Save the excel file | |
workbook.save(dataDir + "OutPut.xls"); |