package com.wonders.task.excel.util;import com.wonders.task.excel.model.SendBo;import org.apache.poi.xssf.usermodel.XSSFCell;import org.apache.poi.xssf.usermodel.XSSFRow;import org.apache.poi.xssf.usermodel.XSSFSheet;import org.apache.poi.xssf.usermodel.XSSFWorkbook;import java.io.File;import java.io.FileInputStream;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.List;import java.util.regex.Matcher;import java.util.regex.Pattern;/** * Created with IntelliJ IDEA. * User: zhoushun * Date: 2014/12/6 * Time: 20:25 * To change this template use File | Settings | File Templates. */public class PoiUtil { private static String excel2007 = "D:\\all.xlsx"; private static void setCode(SendBo bo){ Pattern pattern = Pattern.compile("(\\S+)\\((\\d+)\\)(\\d+)号"); String sendId = bo.getSendId(); if(sendId == null || sendId.length() == 0</
POI处理excel日期格式问题(xlsx)
最新推荐文章于 2021-09-22 15:03:35 发布
这篇博客主要介绍了如何处理POI库在读取或写入xlsx文件时遇到的日期格式问题,提供了自定义处理的方法。
摘要由CSDN通过智能技术生成