Hello all,
I'm trying to format a time so it does not show just a number (instead
of a time) and I'm not having much luck. Here is the code I'm using:
HSSFWorkbook wb = ec.getWorkbook();
HSSFDataFormat format = wb.createDataFormat();
HSSFCellStyle styleTimeFormat;
styleTimeFormat = wb.createCellStyle();
styleTimeFormat.setDataFormat(format.getFormat("1:30 PM"));
.
.
.
ec.getCell(cellColumn+i).setCellStyle(styleTimeFormat);
.
.
.
Does anyone know what I should enter for the parameter getFormat?
Thank you,
John
John Byrne
Support Network for Battered Women
1257 Tasman Dr. Suite C
Sunnyvale, CA
94089
(408) 541-6100 x 138
Fax: (408) 541-3333