aspose file tools*
The moose likes Other Open Source Projects and the fly likes 	. reading data from MS EXcel using apache poi api Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "	. reading data from MS EXcel using apache poi api " Watch "	. reading data from MS EXcel using apache poi api " New topic
Author

. reading data from MS EXcel using apache poi api

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
in the excel sheet i have columns with datatype text.
columns in the excel sheet are name,phonenumber ,dob,address ...

i have copied the required information from another excel sheet into my excel sheet.

DOB (date of birth ) foramt is dd-mmm-yyyy

iam reading the data from the dob column
as string
cell.getStringCellValue();
while reading as string iam getting some random values as output, instead of the one that exist in the excel sheet..(output some double values are comming instead of dob in format dd-mmm-yyyy).

can any one suggest me how to handle this problem.


Abhishek
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10213
    
166

iam reading the data from the dob column
as string
cell.getStringCellValue();


Use the getDateCellValue() for reading date values.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: . reading data from MS EXcel using apache poi api