This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Java in General and the fly likes Reading date from Excel Spreadsheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading date from Excel Spreadsheet " Watch "Reading date from Excel Spreadsheet " New topic
Author

Reading date from Excel Spreadsheet

Shweta Gulati
Greenhorn

Joined: Apr 26, 2001
Posts: 15
Hi,
I am using jxl api to read data from excel spreadsheet in java. I am facing the problem when I start reading date from the spreadsheet. If I enter the date as mm/dd/yyyy format and then I get the data in Cell object using the getContents method it returns me date in mm/dd/yy format.
I want to know how to get the value that is entered in the cell as it is if the data is in date format.
Thanks and Regards,
Shweta
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading date from Excel Spreadsheet