JXL 解析EXCEL里面的数据

--最近项目中要解析excel,用的是jxl,写了个公共的方法

http://blog.csdn.net/wpjava/article/details/6924150

--最近项目中要解析excel,用的是jxl,写了个公共的方法

http://blog.csdn.net/wpjava/article/details/6924150

--JXL获取Excel单元格的日期有时间8小时误差解决方案

http://hi.baidu.com/cdrwandrcubiklq/item/3610ec394e9686352f0f812d

public static java.util.Date convertDate4JXL(java.util.Date jxlDate) throws ParseException{

    if(jxlDate==null)

        return null;

       TimeZone gmt = TimeZone.getTimeZone("GMT");

       DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.getDefault());

       dateFormat.setTimeZone(gmt);

       String str = dateFormat.format(jxlDate);

      

       TimeZone local = TimeZone.getDefault();

       dateFormat.setTimeZone(local);

       return dateFormat.parse(str);

    }

 

 

猜你喜欢

转载自2594082lhj.iteye.com/blog/1908557
jxl