Hi Aspose Team,
I am using aspose cells version 8.1.2. I tried to apply custom date format “MM/DD/YYYY” with below code. In open office I am getting correct format. But in excel I am getting this format
MM-DD-YYYY. Can you please help in this as it is urgent.
Workbook wb = new Workbook(“C:\siva\input\format checking.xlsx”);
Worksheet ws = wb.getWorksheets().get(2);
int styleIdx = wb.getStyles().add();
Style style = wb.getStyles().get(styleIdx);
Range r = ws.getCells().createRange(6, 5, ws.getCells().getMaxDataRow()+1, 1);
style.setCustom(“MM/DD/YYYY”);
r.setStyle(style);
Thanks,
Sivasankari.