aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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: 9074


[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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: displaying current time