POI读取excel日期(数字转化成日期格式)
Calendar calendar = new GregorianCalendar(1900,0,-1);
Date d = calendar.getTime();
if (null != serviceDateStr){
String constant = StringUtils.isBlank(serviceDateStr) ? "" : serviceDateStr;
if (!"".equals(serviceDateStr)){
serviceDate = DateUtils.addDays(d,Integer.valueOf(constant));
}
}
欢迎一起来学习和指导,谢谢关注!
本文来自博客园,作者:xiexie0812,转载请注明原文链接:https://www.cnblogs.com/mask-xiexie/p/16016926.html
浙公网安备 33010602011771号