We want to wrote a dateTime in Excel with a special mask, and save to a PDF.
On excel all works fine, but on pdf, we have this value : "2017月06月年06月"
We have a French culture in our application.
We use :
SpireXLS : 7.12.76.6040
Spire.Pdf : 3.9.303.6040
- Code: Select all
var workbook = new Workbook();
workbook.Worksheets.Add("Test");
var sheet = workbook.Worksheets[0];
var cell = sheet.Range["B2"];
cell.Value2 = new DateTime(2017, 06, 23);
cell.NumberFormat = "m/d/yyyy";
workbook.SaveToFile("Result.pdf", FileFormat.PDF);
Regards