File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Date conversion Milli sec to Date format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Date conversion Milli sec to Date format" Watch "Date conversion Milli sec to Date format" New topic
Author

Date conversion Milli sec to Date format

Anshul Sinha
Greenhorn

Joined: Apr 04, 2007
Posts: 1
I an stuck at a simple issue...
I want to convert the date in millisec eg. 11124400000 to normal date format..eg. 2/3/2007

I am trying thr sql querry but cant fetch the result from resultset

is it possible to solve it without using sql querries like FROM_DAYS()...using only java and not sql?
Darya Akbari
Ranch Hand

Joined: Aug 21, 2004
Posts: 1855
Welcome to JavaRanch Anshul ,

maybe this thread answer your question.

Jim Yingst gave a nice solution for what you are looking for

Regards,
Darya


SCJP, SCJD, SCWCD, SCBCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Anshul Sinha, please take the time to choose the correct forum for your posts. This forum is for questions on Advanced Java.

This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Date conversion Milli sec to Date format
 
Similar Threads
sql.Date problem
Issue with java.util.Calendar in java1.5 & above
Display Records from Database Column for given Order?
Default Date format issue in ojdbc6
Insert date using SQL task