as3xls icon indicating copy to clipboard operation
as3xls copied to clipboard

Cannot read date cell formate in Excel 2003 file

Open cwtsui opened this issue 15 years ago • 2 comments

I have a file generated by Excel 2003. It only contain a column which is date. When I display it using the library, I can only see Integer. After checking the type of the cell is not Data and then cause error. please check

cwtsui avatar Jan 18 '10 11:01 cwtsui

Excel stores dates as integers — as3xls uses some heuristics to determine whether to convert the integer to a Date object. These must be giving the wrong answer for your file. Could you send me a link to the file?

Alternatively, take a look at the return values of the 'isDate' function:

http://github.com/djw/as3xls/blob/master/src/com/as3xls/xls/Formatter.as#L70

djw avatar Jan 19 '10 14:01 djw

Hi, I am facing the same issue, while reading a date cell from excel I get a integer value but the Formatter.isDate method does not recognize it as a date value. Unless it tells me value is of date type I cannot convert it to date in actionscript. I have checked it on the latest code from the repository. Please help. Thanks.

raghu1286 avatar Jun 13 '11 09:06 raghu1286