小问题: poi取Excel单元格数据时,日期格式的问题? Excel单元格中的数据是日期格式:比如:1991-09-9 ,可是cell.getNumericCellValue()取值后结果为 28011.0,如何才能得到正确的结果,向大吓求救! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看poi的例子org.apache.poi.hssf.usermodel.examples的CreateDateCells.java cell.setCellValue(new Date()); HSSFCellStyle cellStyle = wb.createCellStyle(); cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm")); cell = row.createCell((short)1); cell.setCellValue(new Date()); cell.setCellStyle(cellStyle); java继承问题 java怎么调用 unix的pipe啊? 请问,static和abstrace为什么不能同时放在一起来修饰方法 高手解答,何为并发?有分相送 Runtime的问题 请问怎样测出一个folder有几个file?? 大家帮忙看看,是什么问题 一个小问题 请问谁有Applet连接远程Access数据库并且显示数据库内容的例子! 請教多邊形合併算法(我個人認為很難) 不用replaceAll(),怎么去掉字符串中的空格? MS Word如何转成PDF,救帮,谢谢!
HSSFCellStyle cellStyle = wb.createCellStyle();
cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm"));
cell = row.createCell((short)1);
cell.setCellValue(new Date());
cell.setCellStyle(cellStyle);