تحويل التواريخ إلى التواريخ اليابانية
Contents
[
Hide
]
في التقويم الياباني ** ** ، يبدأ عهد جديد مع عهد إمبراطور جديد. في الأول من مايو 2019 ، وصل إمبراطور جديد إلى السلطة وانتهى عهد هيسي وبدأ عهد ريوا.
يوفر Aspose.Cells طريقة لتحويل التواريخ الميلادية إلى التواريخ اليابانية. أثناء هذا التحويل ، يتم أيضًا النظر في التغييرات في العصر. يقوم مقتطف الشفرة التالي بتحويل ملفمصدر Excel ملف يحتوي على تواريخ ميلادية إلىالإخراج PDF مع التواريخ اليابانية كما هو موضح في الصورة أدناه.
This file contains hidden or 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 | |
//Source directory | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
//Output directory | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
LoadOptions options = new LoadOptions(LoadFormat.Xlsx); | |
options.CultureInfo = new CultureInfo("ja-JP"); | |
Workbook workbook = new Workbook(sourceDir + "JapaneseDates.xlsx", options); | |
workbook.Save(outputDir + "JapaneseDates.pdf", SaveFormat.Pdf); |