File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Calender display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calender display" Watch "Calender display" New topic
Author

Calender display

Steve Johnson
Greenhorn

Joined: Jul 01, 2004
Posts: 4
I am trying to get my Calender object to display just hh:mm:ss. The only method that seems to be close to this is getTime(). That of course displays Thu Jul 01 hh:mm:ss 2004. Can someone give me some help on this? Thanks.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

T0wer

Welcome to Javaranch. We don't have too many rules around here but we do have a Naming Policy. Please read this and adjust your display name accordingly.

Thanks.


GenRocket - Experts at Building Test Data
Mary Wallace
Ranch Hand

Joined: Aug 25, 2003
Posts: 138
Help on?

Have you checked the calender class in
suns site
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Take a look at the API for SimpleDateFormat.
Steve Johnson
Greenhorn

Joined: Jul 01, 2004
Posts: 4
Sorry about the name thing. I was looking on the sun sight. I think that link at the bottom with Date format might be the one that I am looking for. Trying the code now.
Steve Johnson
Greenhorn

Joined: Jul 01, 2004
Posts: 4
I have to use a Calender object, I can't use DateFormat. I can't quite figure it out by looking at the API.
Steve Johnson
Greenhorn

Joined: Jul 01, 2004
Posts: 4
Thanks for the help Gregg I got it.
 
Consider Paul's rocket mass heater.
 
subject: Calender display