Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date conversion Milli sec to Date format

 
Anshul Sinha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch Anshul ,

maybe this thread answer your question.

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

Regards,
Darya
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic