setCellType
public void setCellType(int cellType)
Set the cells type (numeric, formula or string)
Specified by:
setCellType in interface Cell
Throws:
java.lang.IllegalArgumentException - if the specified cell type is invalid
See Also:
Cell.CELL_TYPE_NUMERIC, Cell.CELL_TYPE_STRING, Cell.CELL_TYPE_FORMULA, Cell.CELL_TYPE_BLANK, Cell.CELL_TYPE_BOOLEAN, Cell.CELL_TYPE_ERROR
没发现有日期格式,日期格式化字符串传吧- -