تطبيق نظام التاريخ 1904

Contents
[ ]

لتنفيذ نظام التاريخ 1904 في Microsoft Excel (على سبيل المثال Microsoft Excel 2003):

  1. منأدوات القائمة ، حددخيارات ، وحدد ملفعملية حسابية التبويب.
  2. حدد ملف1904 نظام التاريخ اختيار.
  3. انقرنعم.
اختيار نظام التاريخ 1904 في Microsoft Excel
ما يجب القيام به: image_بديل_نص
انظر نموذج التعليمات البرمجية التالي حول كيفية تحقيق ذلك باستخدام Aspose.Cells APIs.
// 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");