Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calender display

 
Steve Johnson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mary Wallace
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help on?

Have you checked the calender class in
suns site
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the API for SimpleDateFormat.
 
Steve Johnson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help Gregg I got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic