Hello everyone,
I have to create an excel file with POI-3.2-Final (can't upgrade to 3.5+, for retro compatibility issues) and for each row, i have to format a date in col A.
Based on the method names, i thought the way to do it was :
short dateFormat = workbook.createDataFormat().getFormat("dd/MM/yyyy HH:mm");
...
cell = row.createCell(0);
cell.setCellValue(new Date());
cell.getCellStyle().setDataFormat(dateFormat);
but, funny thing actually, it applies this style to ALL cells.
So, keeping in mind that i can't switch API (no upgrade, no csv, no jexcel), is there a way to achieve what i want ?
Thanks