File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes dateformatter... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dateformatter..." Watch "dateformatter..." New topic


Stacy Lee

Joined: Jun 09, 2001
Posts: 12
a given long millisecond value...
how can i get the date and time
like 07-12-01 (date) and 12:00:00 (time)
thank u very much....
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

You're looking for java.util.Date to cretae a Date from the miliseconds, then jvaa.text.SimpleDateFormat (extends java.text.DateFormat so you can use its functionality as well)
I agree. Here's the link:
subject: dateformatter...
Similar Threads
Saving system date
Date comparision in SQL from timestamp
Validate date and time in locat time.
how to get the response time
Unable to fetch records by using 'where' clause for a date type field in sql