Japon Tarihlerine Dönüştür
Contents
[
Hide
]
Japon Takviminde, yeni bir imparatorun saltanatıyla yeni bir çağ başlar. 1 Mayıs 2019’da, Heisei çağı sona erdi ve Reiwa çağı başladı.
Aspose.Cells, Gregoryen tarihleri Japon tarihlerine çevirmenin bir yolunu sağlar. Bu dönüşüm sırasında çağdaki değişiklikler de dikkate alınır. Aşağıdaki kod parçacığı, tarihleri Japon tarihleri olarak içeren kaynak Excel dosyasını çıktı PDF olarak dönüştürmeyi gösterir.
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); |