- 原本直接输入,怎么都是CST格式乱七八糟的。
row.createCell(2).setCellValue("盘点日期:");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String batchDate = sdf.format(batchInfo.getDate());
row.createCell(3).setCellValue(batchDate);
标签:Excel,batchDate,SimpleDateFormat,poi,Date,setCellValue,row
From: https://www.cnblogs.com/pansidong/p/17869604.html