تحويل التواريخ إلى تواريخ يابانية
Contents
[
Hide
]
في التقويم الياباني، تبدأ حقبة جديدة مع تولي إمبراطور جديد. في 1 مايو 2019، تولى إمبراطور جديد السلطة حيث انتهت حقبة هيسي وبدأت حقبة ريوا.
يوفر Aspose.Cells الطريقة لتحويل التواريخ الميلادية إلى تواريخ يابانية. خلال هذا التحويل، يتم النظر أيضًا في التغييرات في الحقبة. تحول كود البرنامج التواريخ الميلادية الموجودة في ملف الإكسل المصدر إلى ملف PDF الناتج بتواريخ يابانية كما هو موضح في الصورة أدناه.
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 | |
//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); |