aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes How to determine Data Format while we are getting Data from Excel Sheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to determine Data Format while we are getting Data from Excel Sheet" Watch "How to determine Data Format while we are getting Data from Excel Sheet" New topic
Author

How to determine Data Format while we are getting Data from Excel Sheet

Hareesh Ram Chanchali
Ranch Hand

Joined: Jan 31, 2005
Posts: 110
hi,

I am populating the data from the Excel sheet but I am not able to know which date format is there in Excel ..How to parse my date according to the date unless I know about its format.

I am using JXL package to read..
same case with TIMESTAMP

Any suggestions please

Thanks in advance


Hareesh Ram Chanchali
SCJP 5.0, IBM Certified Solution Designer
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Still not a Servlet question. I'll move it to JDBC, but it will be moved again if this isn't the correct destination.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

Hareesh,
I'm forwarding this on to Other Java APIs since it's about JXL.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

Hareesh,
According to the JXL tutorial, you can check the format of the cell:

Snipets for tutorial:
Hareesh Ram Chanchali
Ranch Hand

Joined: Jan 31, 2005
Posts: 110
Jeanne,

I have used that but it is not able to identify the date data sometimes if the format is diffrent.

by the by , even it recognize ,how can i know format of the date whether
dd/MM/yyyy or MM/dd/yyyy or any other
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to determine Data Format while we are getting Data from Excel Sheet