Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Cannot read date cell formate in Excel 2003 file #2

Open
cwtsui opened this issue Jan 18, 2010 · 2 comments
Open

Cannot read date cell formate in Excel 2003 file #2

cwtsui opened this issue Jan 18, 2010 · 2 comments

Comments

@cwtsui
Copy link

cwtsui commented Jan 18, 2010

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

@djw
Copy link
Owner

djw commented Jan 19, 2010

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

@raghu1286
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants