• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JXL: Reading Time Format

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I am using JXL to read an Excel file using Java.

One of the columns on the file is in a Time Format.

What is displayed in the Excel cell is (24-hr format): 0:01

When I highlight the cell, the value is different in the formula bar. It reads 12:01:00 AM

Using the code:
sheet.getCell(7,i).getContents()

returns a value of 12:01

My problem is, using the value extracted, there is no way for me know if 12:01 is AM or PM.

How can I extract the value from excel getting the displayed value? the 0:01.

or, how can I extract the value, that I can get the AM/PM?

Please advice. thank you.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic