Konvertera datum till japanska datum

Contents
[ ]

Aspose.Cells tillhandahåller ett sätt att konvertera gregorianska datum till japanska datum. Under denna konvertering beaktas också eraändringarna. Följande kodsnutt konverterar käll-Excel-filen innehållande gregorianska datum till utdata-PDF med japanska datum enligt bilden nedan.

todo:image_alt_text

// 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);