1904 Tarih Sistemini Uygulayın
Contents
[
Hide
]
Microsoft Excel iki tarih sistemini destekler: 1900 tarih sistemi (Windows için Excel’de uygulanan varsayılan tarih sistemi) ve 1904 tarih sistemi. 1904 tarih sistemi normalde Macintosh Excel dosyalarıyla uyumluluk sağlamak için kullanılır ve Macintosh için Excel kullanıyorsanız varsayılan sistemdir. Excel dosyaları için 1904 tarih sistemini Aspose.Cells kullanarak ayarlayabilirsiniz.
1904 tarih sistemini Microsoft Excel’de uygulamak için (örneğin Microsoft Excel 2003):
- itibarenAraçlar menü, seçSeçenekler ve öğesini seçinHesaplama sekme.
- seçin1904 tarih sistemi seçenek.
- TıklamakTamam.
Microsoft Excel’de 1904 tarih sistemi seçiliyor |
---|
![]() |
Aspose.Cells API’lerini kullanarak bunun nasıl elde edileceğini öğrenmek için aşağıdaki örnek koda bakı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-.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"); |