HSSFCellStyle style0 = workbook2003.createCellStyle(); style0.setBorderBottom(HSSFCellStyle.BORDER_THIN); style0.setDataFormat(format.getFormat("yyyy/mm/dd hh:mm:ss")); cell.setCellStyle(style0);