Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

. reading data from MS EXcel using apache poi api

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam reading the data from the dob column
as string
cell.getStringCellValue();


Use the getDateCellValue() for reading date values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic