excel中的一列日期类型的数据,例2008-9-13,可用jxl读取的时候就变成08-9-13了,请问这个怎么让他取出来的时候变成2008-09-13?

解决方案 »

  1.   

    如果取出来确定是日期类型 自己用dateformat格式化就行了吧 
      

  2.   

    你的format没设对
    String format = "yyyy-MM-dd";SimpleDateFormat stf = new SimpleDateFormat(format);
    String stringValue = stf.format(cellValue);
      

  3.   

    看这个:
     
    SimpleDateFormat stf = new SimpleDateFormat("yyyy-MM-dd"); 
    String stringValue = stf.format(cellValue);
    System.out.print(stringValue);
      

  4.   

    方法1:采用SimpleDateFormat进行转换
    方法2:采用org.jxl.date 来进行CELL的读取,然后获取Time,封装到Date中
      

  5.   

    自己format一下被   自己控制
      

  6.   

    Dateformat
    我刚学时间时,天天Dateformat