This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

. reading data from MS EXcel using apache poi api

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • 0
  • 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: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic