SimpleBlockReaderImpl.java 不支持 excel 日期格式

Issue #9 new
ZssAzrael created an issue

readNumericCell 可以加上日期判断

    if (DateUtil.isCellDateFormatted(cell)) {
        final Date date = DateUtil.getJavaDate(cell.getNumericCellValue(), TimeZone.getDefault());
        return new Timestamp(date.getTime()).toString();
    }

import org.apache.poi.ss.usermodel.DateUtil; import java.sql.Timestamp; import java.util.Date;

Comments (0)

  1. Log in to comment