File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes displaying current time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "displaying current time" Watch "displaying current time" New topic

displaying current time

Jane Dunne

Joined: Feb 14, 2005
Posts: 15
I'm trying to display the time when a user logs out of my application. I'm using
but it keeps returning 1153135669261 every time. How can I capture the current time and display it in hours, minutes and seconds?

Thanks alot
Joe Ess

Joined: Oct 29, 2001
Posts: 8903


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Hope it helps

[ July 17, 2006: Message edited by: Ankur Sharma ]

The Best way to predict your future is to create it - Every great individual common man
Jane Dunne

Joined: Feb 14, 2005
Posts: 15
new Date.toString() worked. Thanks alot!
I agree. Here's the link:
subject: displaying current time