Quantcast
Channel: Java Programming Forum - Learn Java Programming - Apache POI
Viewing all articles
Browse latest Browse all 120

How to identify date cell type using XMLStreamReader (poi's XSSFReader api)

$
0
0
I have a simple excel sheet(.xlsx) with a number of rows. For one of cell the data type is "Date" and I can see the date in correct format in Excel. But when I read excel using XMLStreamReader(poi's XSSFReader api) I get some double value for this cell.

I need to be able to:

1. determine data type of cell

2. if it is date data type then I want to convert the double value to date, as i am not sure which cell is of type date

How can I do this?

Viewing all articles
Browse latest Browse all 120

Latest Images

Trending Articles



Latest Images