execl中日期型的数据,例如2005-7-7,在使用apache的hssf导入时得到的是一个数字型的,其实就是在execl中把日期转换成数据格式时的那个值,3万多的一个数,现在想用date类再来得到年月日,请各位大大指教一下

解决方案 »

  1.   

    Date
    public Date(long date)Constructs a Date object using a milliseconds time value. If the given millisecond value contains time information, the driver will set the time components to zero.
    Parameters:
    date - milliseconds since January 1, 1970, 00:00:00 GMT. A negative number indicates the number of milliseconds before January 1, 1970, 00:00:00 GMT.