Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
How to display Calender?
time pattern for milli second
rendering calendar object
How to - Display database rows in a calendar format
display the calender in jsp page