Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Java in General
Milliseconds to date conversion
Sunil Kumar
Greenhorn
Posts: 14
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have converted date to miliseconds. Now, how can convert milliseconds to date back
Thanks & Regards
Ja In
Tony Morris
Ranch Hand
Posts: 1608
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
new Date(ms);
Tony Morris
Java Q&A (FAQ, Trivia)
Sunil Kumar
Greenhorn
Posts: 14
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanx Tony, How to get date along with time as well, like "7/19/2005 8:13:08 PM"
Stuart Gray
Ranch Hand
Posts: 410
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A
Java
Date instance represents a point in time so 'includes' that information already. Check out the parse method in the DateFormat class to print the Date the way you want.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
jstl miliseconds to Date
Date milliseconds
DATE/TIME
block timer
Converting Date Into Milliseconds?
More...