Hi Aspose Team,
I am trying to apply style on date column, but not getting as expected result.
Workbook workbook = new Workbook();
Worksheet sheet = workbook.getWorksheets().get(0);
sheet.getCells().get("A1").putValue("12-10-2014");
Style style;
StyleFlag flag = new StyleFlag();
style = sheet.getCells().getColumns().get(0).getStyle();
style.setCustom("mm/dd/yyyy");
flag.setNumberFormat(true);
sheet.getCells().getColumns().get(0).applyStyle(style, flag);
workbook.save("d:\\ASPOSE\\colnumberformat.xlsx");
Here I apply style “mm/dd/yyyy” on A1 cell but not getting result in that format.
Could you please update me ASAP.
thanks